Questions tagged [django-manage.py]

django-manage.py refers to Django's command-line utility for common administrative tasks.

django-manage.py refers to Django's command-line utility for common administrative tasks.

188 questions
3
votes
2 answers

cannot run django_quiz app. manage.py not found

I was trying to install the django_quiz app that was found on github. https://github.com/tomwalker/django_quiz And as you can see below, i've installed all requirements. but there's no manage.py. How do i start and run the project? Things I did…
3
votes
0 answers

Django unable to access database/Access denied for user@localhost

I'm currently having some trouble running a Django app, Scalica. It was working just fine last night, I must have done something wrong to break it--I'm just not sure what it is. When I try to run the…
viviboox3
  • 309
  • 1
  • 6
  • 20
3
votes
2 answers

timeit is not working in the python manage.py shell

I have to find time taken to run query in django project i.e. python manage.py shell code: >>> import timeit >>> d = {"a":1, "b":2} >>> def a1(): ... for i in d: ... a = i, d[i] ... >>> a1() >>> print "Time 1:", timeit.timeit('a1()',…
Vivek Sable
  • 9,938
  • 3
  • 40
  • 56
3
votes
1 answer

Django manage.py do not show commands of an app

I'm using Django 1.4 and have a project similar to the following: project/ __init__.py app1/ __init__.py models.py views.py management/ __init__.py commands/ …
se7entyse7en
  • 4,310
  • 7
  • 33
  • 50
3
votes
1 answer

python manage.py run server return ImportError

Traceback (most recent call last): File "manage.py", line 2, in from django.core.management import execute_manager ImportError: cannot import name execute_manager I downloaded a django blog project from github and i want to see if…
MMMMMCCLXXVII
  • 571
  • 1
  • 8
  • 23
3
votes
1 answer

TypeError: 'module' object is not subscriptable after upgrade to django 1.5.1

After upgrading from django 1.2.7 to 1.5.1 when trying to run celery by using python manage.py celeryd -v 2 -l INFO --settings=settings i got an error saying that django.core.management.execute_manager is deprecated in django 1.4 my…
yossi
  • 12,945
  • 28
  • 84
  • 110
3
votes
2 answers

GSWD Heroku Django manage.py issue

I worked my way through a great django tutorial online, but am having an issue with the final heroku deployment. Here is the django tutorial: http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/ The issue I have is with the last…
GuidoS
  • 697
  • 7
  • 16
2
votes
1 answer

When to run and interrupt a django management command

I have a custom django-command that reads and RSS, looks for new feeds and, if any new feed is found, I push it (pusher.com) to my webapp hosted in Heroku (heroku.com). This checking needs to be done as much as possible to be able to get the new…
Gerard
  • 9,088
  • 8
  • 37
  • 52
2
votes
1 answer

django-cms makemigrations error: No module named 'packaging'

I am starting out in django-cms and I am trying to install cms from the official cms documentation. I created my virtual environment and installed Django and django-cms. The next steps are to create a project with django-admin, and adding the…
2
votes
1 answer

UTF-8 when running management commands from script

I am using this command to dump data py -Xutf8 manage.py dumpdata app.ModelName --indent 4 --format=json --output app/fixtures/data.json which works perfectly fine. However when I try to run the command in script management.call_command( …
2
votes
1 answer

Is it possible to create a django_tenant_superuser via management.call_command?

I'm building a multi-tenant project with django-tenant. The issue I'm encountering is that "password" is not a valid flag option. management.call_command( 'create_tenant_superuser', interactive = False, username =…
2
votes
1 answer

Nested management commands in Django

Is there anyway to create nested management commands in Django, similar to what the docker and kubectl have? For example, let's say I need to have the following structure: |-->manage.py |-->restaurant |-->list |-->get …
Johnny Metz
  • 5,977
  • 18
  • 82
  • 146
2
votes
2 answers

How to change "python manage.py" to "./manage.py"?

I want to shorten python manage.py to ./manage.py. This may be simple, but I couldn't find an answer for this. I saw a step by step method in one of the answers for questions about django but I did not memorize that. Tried to search for answers on…
rd9911
  • 115
  • 1
  • 11
2
votes
3 answers

Django admin server shuts down when 127.0.0.1:/admin/ URL is hit

Developing my first Django project using Django docs https://docs.djangoproject.com/en/3.0/intro/tutorial02/ I have gotten to the admin section, but anytime I enter the /admin/ the Django server shuts down with no error message (like pressing CTRL +…
2
votes
1 answer

Django custom command not working with args

I am trying to call the command using args in Django 2.0. When I pass the args it give this error message: "TypeError: Unknown option(s) for dummy command: args. Valid options are: help, no_color, pythonpath, settings, skip_checks, stderr, stdout,…
Faizan
  • 268
  • 2
  • 9