Charly
Charly
Cool
Cool
Cool
Cool
Best combination
Cool
Based on your Experience with Django so far
T
Cool
Charly
Cool
(⌐■-■)
I have a drawable canvas. How to send coordinates of the pen from the canvas to django?
Abdullaev
any articles/videos of django+react with deployment explanation ?
thanks
Drago
Can I make a mixture with HTML (appearance), CSS (design), Python Django (structure)? If yes, can you give me examples?
(⌐■-■)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
I am getting this error... anyone know how to resolve this?
Maxim
tank
How to set navbar with login&user details with django
Vikash
gadghimuradm
How to set navbar with login&user details with django
U can use jinja in your templates:
{% if not request.user.is_authenticated %}
<ul class="navbar-nav navbar-right mb-2 mb-lg-0 ms-lg-4">
<li class="nav-item">
<a href="{% url 'main:login' %}">
<button class="btn btn-outline-success me-2" type="button">Login</button>
</a>
</li>
</ul>
{% endif %}
{% if request.user.is_authenticated %}
<something>
{% endif %}
Mirco
Jack Sparrow
gadghimuradm
snegalur
Hi, I want to auto fill the username in the field. How can I do that ?
Drago
Никита
Hello guys, I’ve followed this guide « https://stackoverflow.com/questions/45872539/django-and-nginx-x-accel-redirect » to secure my media files.
So, I still have 404 error :)
May be there is anybody who encountered with this.
I can provide my code, for details.
I think, my request.path is wrong, because my media files stored in additional folder inside media folder.
Please let me know if you have solution
Thank you for your time.
Athar
Hi, how can I preview my blog post inside admin panel. I want to preview my blog and the publish it.
snegalur
snegalur
Like I have a column called updatedby, the column need to be updated automatically with the username when the user make any changes
ALL IS
Any Django beginners ebooks, please.
Jack Sparrow
Athar
Athar
Jack Sparrow
I want to see preview of my blog before saving it.
You can create two options one is draft other is published.... And in views.py you can set diffrent tab for drafts only..and and if you satisfy you can change the draft option to published.
McLean
how can i create a wagtail image field
Athar
Athar
Otherwise i need make a admin web site just because of it.
Anu
I'm not able to give a default value in a model......it is asking "u r trying to add a non- nullanble" field
Jack Sparrow
I want it inside admin panel it is an client requirement.
I search but couldn't find direct option in default admin panel fir preview tab....either you have to set custom admin site or you have to make a seprate url in url.py for the unpublished/draft projects to preview the article.
Jack Sparrow
Athar
Yesu
Static folder was created at the manage.py file level.
Project
- project
- app
- media
- static
- styles.css
- manage.py
Now I need to refer the css and js files in my templates.
Configuration done:
Urlpatterns += static (settings.static_url, settings.static_root)
In settings.py file
Static_url = '/static/'
Staticfiles_dir = [ os.path.join(base_dir,'ststic'),]
In template,
{% load static %}
<link href="{% static 'styles.css' %}" />
Issue is can't access the static files in project directory but it was accessible when files moved to app directory..
Anyone knows answer or resolution for that?
Maxim
Reflex
Hello great people, hope you're all fine and healthy.
I want to use Django Oauth Toolkit on my REST Api(drf).
Do I need to create the registration,login,logout,password reset views for authentication Or it will use social apps like google,twitter for authentication. I highly appreciate your help.
Sleeping
Anyone please tell me how to deploy django application on heroku i am getting error in which is items could not me retrieve
Jay
I have hosted aws RDS and done all auto back-up off than too Amazon Relation Database services consumed 4GB. Please help 🙏🙏
It's been 5 day only and when I checked my database size is 40 mb
Doragonsureiyā
D
Page not found (404)
No Post matches the given query.
Request Method: GET
Request URL: http://127.0.0.1:8000/blog/2022/4/29/aaaaaaaa/
Raised by: blog.views.post_detail
Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
admin/
blog/ [name='post_list']
blog/ <int:year>/<int:month>/<int:day>/<slug:post>/ [name='post_detail']
The current path, blog/2022/4/29/aaaaaaaa/, matched the last one.
D
hi guys can you help with this issue please ?
Mirco
D
Reflex
Anyone who has worked with django oauth toolkit before?
Shreyas
Getting issues while including header and footer html files... Getting error which says template doesn't exist
Added BASE_DIR/"templates" In DIRS [ ] in settings.py
Doragonsureiyā
Anyone who has worked with django oauth toolkit before?
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z!"
Just ask directly! The better you are at explaining the problem, the more likely you are to get help.
Asking smart questions
Reflex
Hello guys, hope you're all fine and healthy.
I want to use Django Oauth Toolkit on my REST Api(drf).
The question is...
Do I need to create registration,login,logout,password reset views for authentication backends ?
Shreyas
Mirco
Enigma
hi everyone.
i want to create a form which user can upload files (mp4 , mp3 and images).
i already made the model and its working fine
i created the form too but wen i uplaod a file from it it would gives a error "This field is required." in the filedform part.
what should i do??
also my html form is :
<form method="POST" action="" enctype="multipart/form-data">
{% csrf_token %}
{{ form.title }}
{% for error in form.title.errors %}
<p style="color: red">{{ error }}</p>
{% endfor %}
{{ form.art }}
{% for error in form.art.errors %}
<p style="color: red">{{ error }}</p>
{% endfor %}
{{ form.description }}
{% for error in form.description.errors %}
<p style="color: red">{{ error }}</p>
{% endfor %}
<input type="submit" value="Submit">
</form>
Ruzan
How do I configure Daphne and nginx in deployment
Doragonsureiyā
How do I configure Daphne and nginx in deployment
These single steps will help you a lot:
Step 1️⃣: Open a browser
Step 2️⃣: Write down https://google.com or https://duck.com and press Enter
Step 3️⃣: In the search box, write down the same words you asked here
Step 4️⃣: Read the first results
Ruzan
Funny bot
cj
Funny bot
it's not funny... that's a thing you should actually do... that's why Google/DDG exists ¯\_(ツ)_/¯
Reflex
Doragonsureiyā
Rohit
Have your tried using cProfile
I tried cprofile but it showing metrics on UI. I want if I hit an api from postman then I can see the logs in my terminal how much it taking.
Mihail
Can you send good video about what was changed in Django from 1 version?