Morteza
T I T T U
Anonymous
Hey👀
cr
Morteza
Share view
i have try to delete it from django admin panel
T I T T U
cr
Morteza
IND_
guys i need to build a app where you can mark locations on maps it will be stored in db and can see all locations marked at one map
IND_
any one have an idea
Morteza
https://del.dog/adacucrest
i understood what the problem was, it was from one of my GenericRelation field that called *amazing*
thanks for the following.
Gürol
http://localhost:8000/_models/earth.mtl
Gürol
page not found alıyorum
Abdul Shakoor
Hi, is there any free hosting websites besides Heroku and PythonEveryWhere?
Rocky
Mauricio
Hi friends, I have a problem with my manage.py of a specific project.
When I make a change it doesn't reload automatically
I have to stop the project (Ctrl+C in Windows) and run it again.
I already tried all the solutions available on stackoverflow, deleted the .pyc files, I opened the project in a tab in incognito mode
But the problem persists (only in that project, the rest of the projects work correctly)
Mauricio
I don't know what else I could try, already tried every solution out there on the web
Mauricio
Any advice would be much appreciated
Ameez
how to add multiple user login interface??
Mauricio
Anki|Important texts only
I have created a base.html to hold header and footer for my Django based website and extended that to other html pages that I have created. Wanted to add css to this base.html, but getting no luck. I have already tried inline, internal, external all of them to beautify those ugly buttons on header, but they just no doing anything.
please help!!
Anonymous
Anki|Important texts only
i have it
Anki|Important texts only
Create block in base html
{%load static%}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}">
</head>
<header>
<button id="myButton" class="float-left submit-button" >Home</button>
<a href='{% url 'about' %}'>About</a></li>
<a href='{% url 'contact' %}'>Contact</a></li>
</header>
{% block content %}
{% endblock content %}
<footer>
<p>this is footer</p>
</footer>
Anonymous
As you have created content block create a css block
Anonymous
And derived in
noneofurfuckinbusiness
noneofurfuckinbusiness
Anki|Important texts only
inside templates i have my html
inside static i have css folder and then css files
Anki|Important texts only
even if i mention static/css/base.css
not working :(
noneofurfuckinbusiness
Then ur href should be {% static "app_name/css/base.css" %}
noneofurfuckinbusiness
U forgot to mention app name
Suprit
Anki|Important texts only
the template and the static folders are inside the app
Anki|Important texts only
so do i have to mention app_name
noneofurfuckinbusiness
Yes
noneofurfuckinbusiness
What is static folder directory structure
Anki|Important texts only
app_name/static/css/base.css
Anki|Important texts only
app_name/templates/base.html
noneofurfuckinbusiness
Create a new folder in static with app name
noneofurfuckinbusiness
Then shift ur css, js folders in that new folder
noneofurfuckinbusiness
noneofurfuckinbusiness
If that doesn't work, delete cache of browser or open in another browser
Anki|Important texts only
Anki|Important texts only
previously i created a folder with the same name as my app_name
Rup
I am facing this error. when i set blank=True. null value in column "pincode" violates not-null constraint
Rup
still its take as mandatory
appu
Anybody suggest me a best udeny course for django
Anki|Important texts only
Anybody suggest me a best udeny course for django
no course is good enough.. learn enough from some book and start off a project, that is what i will suggest. there is a tone of different ways to do any thing in coding languages ... so learn some python.. learn to create a boilers plate for Django and start off with your own project
hope this technique helps u
Anonymous
hope that helps
Anonymous
Владислав
Guys, who can help write a method for the model, if true, then display that this post is "new" in the template from the update date (time_update) for 3 days? I just don’t rummage in times)
Anonymous
Hii dears I have a issue for related to models->ReachTextEditor->extraplugin(video)
Ivan Putra
TKO turun dulu ya, sama mau beli 😂😂😂
Anonymous
Anonymous
content = RichTextUploadingField(blank=True,
null=True,
config_name='special',
extra_plugins=['video'],
external_plugin_resources=[(
'video',
'/static/ckeditor/plugins/video/',
'plugin.js',
# 'video/plugin.js'
)]
)
Anonymous
STATIC_URL = '/static/'
STATICFILES_DIRS = [
BASE_DIR / 'static'
]
MEDIA_URL ='/images/'
MEDIA_ROOT = BASE_DIR / 'static/images'
CKEDITOR_UPLOAD_PATH = "uploads/"
CKEDITOR_RESTRICT_BY_USER = True
CKEDITOR_BROWSE_SHOW_DIRS=True
CKEDITOR_CONFIGS = {
"default": { "removePlugins": "stylesheetparser" },
'special': {
'toolbar': 'CMS',
'toolbar_CMS': [
'uploadwidget',
{
'name': 'basicstyles',
'groups': ['basicstyles', 'cleanup'],
'items': ['Bold', 'Italic', 'Underline', '-', 'RemoveFormat']
},
{
'name': 'paragraph',
'groups': ['list', 'indent', 'blocks'],
'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote']
},
{
'name': 'links',
'items': ['Link', 'Unlink']
},{
'name': 'insert',
'items': ['Image', 'HorizontalRule', 'Table', 'Iframe', ]
},
{
'name': 'colors',
'items': ['TextColor', 'BGColor']
},
{'name': 'paragraph',
'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-',
'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl',
'Language']},
[ 'Video'],
],
'extraPlugins': ','.join(['video']),
},
}
Anonymous
when I enter the admin->Posts->video->Browse server it is appear
Anonymous
just : Browse for the image you want, then click 'Embed Image' to continue...
Anonymous
plz who do know solve about this issue?
𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
how to capitalize CharField in model?
𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
i need to capitalize every word
𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
does anybody know?
𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
getting error
𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
amount_in_words = models.UpperCharField(max_length=255,default=" ", uppercase=True)
AttributeError: module 'django.db.models' has no attribute 'UpperCharField'
𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
Yavno
There is a line html = '''<h1> Name <h1>'''
Is it possible to convert to jpeg and save as file?
Without creating html file
kunmi_od
Ankit
Who can teach me android app development..??