207 questions
-1
votes
1
answer
48
views
Django project -createsuperuser Doesnt work [closed]
I am facing an issue while creating my superuser using the following command: ./manage.py createsuperuser, it seems that there is no error but the line where í can set my email and password doesnt ...
0
votes
1
answer
44
views
django - how to distinguish if code in AppConfig is run by manage.py or by http server
I customized AppConfig in django to start some processes needed for the main application as described in the django documentation.
In the usual initialization process, the ready method is only called ...
0
votes
1
answer
45
views
I have been trying to runserver for my code but I keep getting this error
I'm trying to create a website using django but each time I runserver i keep getting this error message:
TemplateDoesNotExist at /
base.html
Request Method: GET
Request URL: http://127.0.0.1:8000/
...
0
votes
0
answers
211
views
Django: Unknown command: 'collectstatic' when using call_command
I have a Django project with "django.contrib.staticfiles" in INSTALLED_APPS. Therefore, I can run ./manage.py collectstatic. But I need to use call_command.
Running python -c 'from django....
1
vote
1
answer
357
views
Visual Studio Django - Freezes on python manage.py createsuperuser
So, I'm new to Django and am using Visual Studio 2022 with Python 3.12 (which is apparently not fully supported by Visual Studio).
When I start a fresh Django web app project, it prompts for me to ...
0
votes
1
answer
485
views
Error when using manage.py loaddata to load Django JSON file created with dumpdata
I am using ./manage.py loaddata file.json to load a JSON file created with ./manage.py dumpdata > ../directory/file.json, and I get the following error:
matching_chars: 6 ...
0
votes
0
answers
22
views
Update front-end when delete a row in database in React native
I am new with Django and I trying to run my first project. But i keep getting this error when trying to run python .\manage.py makemigrations
enter image description here
I am not sure what is the ...
-1
votes
1
answer
52
views
creating an admin user using django [closed]
I was creating an admin user account, when it got to create password my keys stopped working!!I even rebooted my system and started from top boom it happened again
tried to create password on django ...
0
votes
1
answer
598
views
Django Shell Command Does Not Execute For Loop
I have a Django project going on, containing some functions and creating/updating a database. From time to time, I need to update the staticfiles in the project therefore I created a .py file in the ...
1
vote
0
answers
47
views
Why are we reassigning self.prog_name in the ManagementUtility class?
This is the code snippet in the django that I'm tryin to parse.
0
votes
0
answers
35
views
Problems with manage.py in django
I am attempting to run a site from my localhost. What I did is I first cloned the repo and pull it into my local directory. Then, I changed the DB part to my DB settings. I have tried python manage.py ...
1
vote
3
answers
2k
views
python manage.py makemigrations says table already exists in Django project
I am trying to get a coworker of mine up and running with a project I have already created. When we try to run the server it says one of the tables already exists. We googled it and tried to ...
0
votes
1
answer
2k
views
TypeError: module() takes at most 2 arguments (3 given) Django manage.py runserver [duplicate]
I tried running
manage.py runserver
manage.py makemigrations
and manage.py migrate
but they all give me a TypeError
The error is
Traceback (most recent call last):
File "/Users/William/...
0
votes
1
answer
2k
views
localhost: A server error occurred. Please contact the administrator
I am learning to run local hosts using Django with the help of https://www.dj4e.com/. I am currently trying to run the local server using the following:
python manage.py runserver
When I run this, ...
0
votes
0
answers
838
views
I write the full python venv path to be able to run manage.py
I have a problem in the virtual environment with django manage.py
I use git bash terminal. and when I activate my venve like this :
source explorer/Scripts/activate
I successfully activate the ...
0
votes
1
answer
824
views
How to only create .pot files with django manage.py makemessages
Weblate has an add-on called "Update PO files to match POT (msgmerge)". I want to delegate the creation of .po files to Weblate and only use manage.py makemessages to create the .pot file(s)....
4
votes
4
answers
2k
views
Why it shows Unknown command: 'collectstatic', when I try to collect-static
I am trying to deploy my Django project on Digital Ocean. I created my droplet and spaces on Digital Ocean and created a static folder to store my static files. I pulled my code from my github-repo. ...
0
votes
1
answer
648
views
Django's 'python manage.py runserver' does not create a local website I can access
I am trying to follow this online class, and I am stuck on the part where I access a local website made by django. The tutorial that I follow is this one by freecodecamp, and I get stuck by the 11min ...
0
votes
2
answers
781
views
When running my django project in python3 manage.py run server i get this error ModuleNotFoundError: No module named 'pip._vendor.urllib3.connection'
After i run python3 manage.py runserver i get the following error:
Traceback (most recent call last):
File "manage.py", line 11, in main
from django.core.management import ...
0
votes
2
answers
530
views
Electron Problem runing manage.py runserver
I'm developing a web app, but just yesterday when i try to run manage.py wiht runserver appeared to me this error "(electron) Sending uncompressed crash reports is deprecated and will be removed ...
0
votes
2
answers
2k
views
Django, runserver issues (windows)
I've been looking for the solution everywhere.
I tries to execute "python manage.py runserver" command, but all I received is an error: stack trace.
I have a virtualenv activated, which is ...
0
votes
1
answer
62
views
On Windows 10 Django is not installing properly under the project folder - unable to find manage.py
I am a new developer. I'm following instructions from to Django for Beginners book.
When I run
C:\Users\User\Desktop\HelloWorld>pipenv install django~=3.1.0
The message I got:
Installation ...
1
vote
2
answers
2k
views
django: I accidentally deleted the manage.py file. how to recover it?
I accidentally deleted the manage.py file with vim nerdtree. apparently, there isn't a way to recover it I I don't know what to do.
can I somehow create a new one or restore it?
0
votes
1
answer
2k
views
Cannot fix django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet
I run the following line of code on a Docker container:
RUN python3 manage.py sitetree_resync_apps --settings=sites.production.settings
and I get the following error:
Traceback (most recent call last)...
3
votes
1
answer
4k
views
DeprecationWarning: Using or importing the ABCs from 'collections' instead of fr om 'collections.abc' is deprecated, and in 3.8 it will stop working
I downloaded a code from github and trying to run it as it is by running command in git bash: python manage.py runserver
But I am experiencing this error:
DeprecationWarning: Using or importing the ...