Mirco
Read rules
Mirco
!rules
Doragonsureiyā
Read the rules before any activity: @PythonRules
Mirco
And you will find the answer
Mihir
How to import CSV in inlines form django admin
Anonymous
Hello
Anonymous
Am developing a website in an offline environment and would like assistance on serving static bootstrap files on Django 3.?
The
what changes should be done in the files before uploading to cpanel
The
?
Marie
Hi everyone! Has anybody resolved this issue in Pycharm community? https://stackoverflow.com/questions/43865989/unresolved-attribute-reference-objects-for-class-in-pycharm
Anonymous
Hi , how to add 2 intermediate page in django admin action , one for confirmation and followed by their results in 2nd HTML page ... , any hint ???
The
can somebody help me in passenger_wsgi.py
The
for deploymnt
Shadow
I'm trying to use customer module for login authentication. But I'm able to use default user table only. I don't know how to use auth.authenticate function for customer mode. Anyone please help me to solve this problem
Shadow
Customer module
Ghorz
ok thanku
You want to run django on shared hosting. passengers defines your app starting point
The
its running now
The
but then it went down showing me "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly. "
The
where can I find the log files?
A
Hello can anyone help me with this.https://stackoverflow.com/questions/61850695/open-pdf-on-input-click-in-django
Ghorz
where can I find the log files?
Your django directory
Ghorz
Hope you are not running django 3
Ghorz
It will not work
Ghorz
For sqlite and Mysql, use 2.1
Ghorz
For 3.xx use postgres
Anonymous
Hello! I created a iframe where my pdf tgat is stored in media folder is displayed, It is viewing properly on desktop but when i open same link on phone it is showing only dow load option
The
Your django directory
thank u very much for the information
Muflone
For sqlite and Mysql, use 2.1
2.2 minimum for SQLite 2.0 and 2.1 are broken
Ghorz
2.2 minimum for SQLite 2.0 and 2.1 are broken
tested as of today. working perfecto
Dipak
How to implement composite primary key model?
Guilherme
How to implement composite primary key model?
U can use "unique_together" meta attr
Guilherme
class MyTable(models.Model): class Meta: unique_together = (('key1', 'key2'),) key1 = models.IntegerField(primary_key=True) key2 = models.IntegerField()
Anonymous
Any recent Django tutorial to learn from for beginners
Anonymous
?
Doragonsureiyā
Any recent Django tutorial to learn from for beginners
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Anyone know how to use reactJs in django
cj
Anyone know how to use reactJs in django
just like any other JS library, no black magic needed
Anonymous
It's my first time to use reactJs in django
Anonymous
I use bootstrap
cj
It's my first time to use reactJs in django
do you have previous experience using ReactJS?
Anonymous
{ % bootstrap_reactjs %} like that
Anonymous
A little reactJs knowledge
cj
well... you just have to build a decoupled ReactJS client application and build a REST-API in django, that's the easiest way
Muflone
tested as of today. working perfecto
Ok the fix was backported to Django 2.0 and 2.1 also. When I had this issue there wasn't any fix for 2.0 and 2.1. https://code.djangoproject.com/ticket/29182
Bunty chhatri wala..
Should i use django forms or html forms And if i use django forms, then how to implement bootstrap and css on each field?
Vaibhav
Should i use django forms or html forms And if i use django forms, then how to implement bootstrap and css on each field?
You can set attributes to the form field in forms.py like class name or placeholder etc
Nematullah
Hello Have to index a list in django template html for example mylist[0],mylist[1] ... with for loop
Shubham
https://dpaste.org/6PjZ This is model https://dpaste.org/A7St This is serializer On post I am getting an error Cannot assign "OrderedDict([('dob', datetime.date(2020, 3, 1))])": "User.customer" must be a "Customer" instance.
Anirudh Reddy🇮🇳
Please help me I got an error while running the server in django
Anirudh Reddy🇮🇳
http://pastebin.com/EyaeAbX8
Anirudh Reddy🇮🇳
http://pastebin.com/EyaeAbX8
This the error I got it while running the server
A
Hello, can Anyone help me with this problem https://stackoverflow.com/questions/61908495/logout-in-django-using-auth-token ?
Ilias
question from a beginner: so I recently followed the django tutorial on the mozilla website (LocalLibrary) and now I want to start my own project but when I run the development server it redirects to a url I defined in the tutorial (which it shouldn't right). I tried removing django/the locallibrary project and start over again but it still redirects to it. Anyone know what I did wrong?
Ilias
found the solution: used permanent=True in another project which lead to the browser going to the cached version. Thanks anyway!
कामेश
This the error I got it while running the server
your error is generation expression must be parenthesized check this https://stackoverflow.com/questions/51265858/syntaxerror-generator-expression-must-be-parenthesized
Anonymous
Django ecommerce Web site step by step tutorial
Doragonsureiyā
Django ecommerce Web site step by step tutorial
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 firsts results
Pankaj
Anybody used data wizard library???
Pankaj
I am not getting the way that how to create model class and serializer class for parsing data
Rsk
Anyone worked on drf-yasg ????
Rsk
Anyone worked on drf-yasg ????
Swagger integration with django rest framwork
MH
Hello , I hope you are fine. Please I have a question about Django. I am now working on a project where each user can capture a story and save it to their personal account. But these images are stored in the public/media and if I take the link to the image and I have accessed it from a hidden browser it display for me. How can I prevent images from appearing by token
MH
OK brother
inchidi
Hello , I hope you are fine. Please I have a question about Django. I am now working on a project where each user can capture a story and save it to their personal account. But these images are stored in the public/media and if I take the link to the image and I have accessed it from a hidden browser it display for me. How can I prevent images from appearing by token
on production, your files should not be served by django, thus you should handle it on web server level not on django level. if you are using ngix: https://www.nginx.com/blog/securing-urls-secure-link-module-nginx-plus/ can also read more here https://stackoverflow.com/a/48133411
Doragonsureiyā
Anyone worked on drf-yasg ????
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 60k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Doragonsureiyā
I am not getting the way that how to create model class and serializer class for parsing data
Read this please: http://www.catb.org/~esr/faqs/smart-questions.html
inchidi
I have never dealt with nginx i will learn it now my brother. thank you very much
if you never deploy your django app, better learn how to deploying django project first