DonLarry
No
The syntax is incorrect it is showing this error after adding first command sent by u
Adonis
Do someone know a good package for rest auth social package with test framework ?
Rian
DK
Can anyone help how to create google news sitemap on django
Adonis
django Allauth
for REST API... allauth is normal django with plain html and templates
Pramod
Why use rest api ?
Pramod
Ok
DonLarry
No
Yes
No
Do i need to delete the folder
DonLarry
No
What if I delete that .vscode folder will it effect my code
DonLarry
DonLarry
just use git rm --cached your_vs_file
No
No
Yaswanth
Why visual studio code is showing .pyi files instead of py files , when I hit go to definition... Please answer me someone..
No
To ignore .vscode folder or file I needed to make git.ignoreLimitWarning: true to false???
No
Please answer this
Michael
Hi guys, quick question about tests. I do not know why this information was so hard for me to find , but what I would like to do with my tests is to create a test version of my sqlite3 database with thousands of entries, that get populated by the test, and then test this database through manage.py runserver. Perhaps I am approaching tests in a wrong fashion, so correct me where I am thinking about this wrong, but to me it makes complete sense.
So I found this small bit in Django's documentation regarding creating a separate database for when tests are run. I then edited by settings.py file as follows:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'TEST': {
'NAME': 'db.test.sqlite3',
},
}
}
Now, when tests are run, a db.test.sqlite3 file is created. But how do I run my server on it through manage.py runserver while also accessing all the newly created entries in Django Admin? And why was this information so hard for me to find (I spend more that an hour of research to find this solution)? What's the catch?
Any suggestions?
DonLarry
DonLarry
Just add ".vscode" in your .gitignore file
DonLarry
Mirco
DonLarry
Sorry, I did forget it
Aziz
✋
I started new project, and get an error:
django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Sai
Aziz
DonLarry
DonLarry
what command did you run?
Aziz
Sorry, i get this error when i try to run server.
I do it via django-admin run server
Aziz
It's the first time i get this kind of error ..
Aziz
I created env variable for the user as django_settings_module=path_to_settings.py
DonLarry
Aziz
Because of problem. I had think it will solve my problem.sorry for my eng grammar
DonLarry
not problem
by the way, try using "python manage.py runserver"
DonLarry
are you using an IDE with terminal?
Aziz
Yes, vsc
Aziz
Mo
a decimal field in model is defined but it has the type of string. the official django rest says COERCE_DECIMAL_TO_STRING should be false but it is not clear how we should include it in the model. in the normal way it gives error. does any one know that? thanks
DonLarry
Ms Directionless
Saurabh
Hi all,
I am working with Django drf and I want to restrict fields which I am getting from dB.
One of the field is text format which consists of json.
Is there any way by which I can use specific keys from this json to include in fields in serializer?
amit
can anyone tell me what is this question about? Got this assignment that provide your analysis of binary trees in Django. How to build it, how to work properly, optimization, advantages and disadvantages etc.
Bismarx
will they have any django tutoring with svelte?
Kr0pt
Hi guys, what are you think about apps with foreign keys dependencies? Should be in the same app? Is it possible delete this dependency? Thanks
Hello
Can anybody help that I know how to integrate Paytm but how to make that transaction between users in our django app
Fady samy
شباب حد اتواصل مع الدعم بتاع جودادي قبل كدا؟
Ahmed
/
Gayathri
I'm a beginner here, can anybody tell me the best resource to learn django?🙂
Doragonsureiyā
شباب حد اتواصل مع الدعم بتاع جودادي قبل كدا؟
Python groups in other languages
‼️ NOT part of our network ‼️
Amharic @python_amharic
Arabic @arabipython
Azerbaijani @azepug
Chinese @pythonzh
French @python_francais
German @pythonde
Hebrew @pythonisrael
Hindi @pyindia
Indonesian @pythonid
Italian @python_ita @pythonita
Kazakh @python_kz
Persian @pyfarsi
Portuguese @pythonbr
Russian @ru_python_beginners @ru_python
Spanish @PythonEsp
Swahili @python_eafrica
Turkish @python_tr
Uzbek @python_uz
Master of None
https://youtu.be/IZUjJ3rPY1E
Mohit
Hey guus can someone help me actually i am embedding video from YouTube using video-embeed but it was embedded only one video at a time and i am getting only one box in admin pannel but o want to upload lots of video so how can I do that
Mohit
Can someone please help me
No
Christof
Termux
Christof
hello #905
DD777
How to close cmd after run project via.bat file?
Mubtasim
Does csrf_token work for http request?
Doragonsureiyā
Homework? Job/Quiz question?
you have to do it yourself, this group is to help you on specific issues you have on YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻♂️
Shivam
Model form sign up email exits code
âshîsh
Hi there.
I wrote a script that whenever there is a file upload through Admin panel, there is a python file which automatically writes whatever in that file.
But problem is that whever I upload file, and my python code changes
The server reloads automatically.
I want that server shouldn't load but grant all changes in file.
I tried python manage.py runserver --noreload but it's not accepting the changes which made automatically in the python file.
Anonymous
Any ML expert over here
Anonymous
?
Ash
Django full text on multiple related field search returning duplicate data
https://stackoverflow.com/q/67898593/10437046
Anonymous
Haha, you are so interesting.
Artem
How to add django form fields to html template correctly? I have disgusting output right now.
Here is my code: https://pastebin.com/WWVB9Kyn (lines: 10, 14, 18)
ford
Why are you spamming the group
Артем
hello everyone
Артем
How i can save docx in media root in order to name them (date + specific number in each day(such as 1,2,3,4,5))?
Артем
help me please
Zokhid
How can i differentiate users in a project?
I have 3 types of users admin, organizer and participant?