Cool
Yes a lot of people, then what's your real question?
If Possible can the Source Code Link be Shared..I want to make one within 1 day
Charly
Which is the Best Place to find good Awesome UI Templates for Django? The UI in Django Looks too bad as compared to React App
Google? I mean you can use react with django, django es for framework it doesnt have a ui so what you said makes no sense
Charly
If Possible can the Source Code Link be Shared..I want to make one within 1 day
LOL, nope this group is not for asking for ready made projects
Charly
Can you share some resource?
Specifically what kind of resources?
Cool
Cool
Best combination
Cool
Based on your Experience with Django so far
Charly
For Good UI in Django..
Good UI has no relation with django, thats just HTML+CSS
Cool
Yes a lot of people, then what's your real question?
Design a website in django that covers all the stages from hiring to the onboarding processes.
Cool
thats not a question
Problem Statement
T
Design a website in django that covers all the stages from hiring to the onboarding processes.
Django is not responsible for ui, it provides templates, so it is up to your front end skills
(⌐■-■)
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?
tank
How to set navbar with login&user details with django
tank
How to set navbar with login&user details with django
Like if conditions user login than show usre name other wise login button
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 %}
Drago
if you mean in one file, as with php, then no
No, I will have app.html, design.css, views.py files and use css in html, then html file in Django
Jack Sparrow
No, I will have app.html, design.css, views.py files and use css in html, then html file in Django
Yes you can do this Save your css files in static folder And your html file in templates folder
Mirco
Yes, u right. Sry
No probs 😊 just to avoid bad info to newcomers
snegalur
Hi, I want to auto fill the username in the field. How can I do that ?
Jack Sparrow
Hi, I want to auto fill the username in the field. How can I do that ?
I didnt understand if you want to gave example for username as some predefined username You can use default in models.CharField(default=xxxxx)
Никита
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
I didnt understand if you want to gave example for username as some predefined username You can use default in models.CharField(default=xxxxx)
If user login into the site and made some changes, that need to be tracked by username in the database
snegalur
Like I have a column called updatedby, the column need to be updated automatically with the username when the user make any changes
Jack Sparrow
If user login into the site and made some changes, that need to be tracked by username in the database
You can use foreign key to store the username who changes or update the article.... As we do in blog post where the author name register in Database with the help of foreign key. And you can also apply filters to tracks all the changes done by that username.
ALL IS
Any Django beginners ebooks, please.
Jack Sparrow
Hi, how can I preview my blog post inside admin panel. I want to preview my blog and the publish it.
Add those model fields in admin.py and than you can make changes or create new post by directly admin tab
Jack Sparrow
Any Django beginners ebooks, please.
Django documentation is enough.
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
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.
Anu
Can you show the models.py and the error image.
This chat is not allowing me to post a picture here...ok thank you for response....my issue is solved..thank you
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?
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ā
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
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
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 ?
Reflex
Anyone who has worked with django oauth toolkit before?
Mirco
But it exists I added from admin panel
without seeing your post_detail view we cannot help u
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 ?
Reflex
The question is: what's your goal ? Use JWT with DRF ?
I want to be able to authenticate with DOT, it's the recommended one, as per drf documentation.
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 ¯\_(ツ)_/¯
Mirco
I want to be able to authenticate with DOT, it's the recommended one, as per drf documentation.
django oauth toolkit is done especially to provide to consumers OAuth if you just need to authenticate via JWT u can use other packages recommended by DRF
Doragonsureiyā
Okay, thanks for your help
You're welcome! 😊
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?