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
2
votes
3 answers

Django use 'python manage.py' runserver instead Gunicorn

I have a django project hosted on an amazon ec2 linux instance. For run my app also when section is close i use gunicorn but i experience some errors and degradation in perfonrmances. When i run command: python manage.py runserver from terminal…
AleMal
  • 1,977
  • 6
  • 24
  • 49
2
votes
1 answer

Django's manage.py shows old commands

I am coding my own whl-package and after creating some new management-commands and deleting some old ones I was pretty happy with myself. Except after building my wheel-package (with setup.py bdist_wheel) and installing it on my test server (with…
Chris
  • 5,788
  • 4
  • 29
  • 40
2
votes
1 answer

Why can't I authenticate a Django user created from a custom manage.py command?

This one has me completely stumped. I have a model which extends the base User model in Django, so I am writing a custom manage.py command to create superusers. It seems to be working fine, but for some reason any users that I create via this custom…
2
votes
1 answer

how to call different settings from manage.py in django

I'm trying to call environment specific settings in django. I found that you can do something close in django admin according to: https://docs.djangoproject.com/en/2.0/topics/settings/#the-django-admin-utility I tried this with the…
Atma
  • 29,141
  • 56
  • 198
  • 299
2
votes
1 answer

manage.py file showing invalid syntax error

My application was running fine when I was running it on my local machine. But, as soon as I uploaded it on a server , manage.py is giving the following error - File "manage.py", line 14 ) from exc ^ SyntaxError: invalid…
TeeKay
  • 1,025
  • 2
  • 22
  • 60
2
votes
0 answers

Turn off redundant output in manage.py in PyCharm

I see lots of redundant output from libraries like Pillow or requests when using them in management command in PyCharm 2017.2.4: I did not configure any additional logging for this libraries. Is it possible to turn it off?
artem
  • 16,382
  • 34
  • 113
  • 189
2
votes
1 answer

Django error while creating superuser, AttributeError: 'Manager' object has no attribute 'get_by_natural_key'

I am using Django version 1.11.3 and djangorestframework version 3.6.3. At the stage of creating the superuser with the following command: python manage.py createsuperuser This command was supposed to ask me about my Email and Password, though it…
Shivams334
  • 95
  • 4
  • 11
2
votes
3 answers

Django: can't set password for superuser on command line

In the Django tutorial, I'm at the part that says "You'll see a message for each database table it creates, and you'll get a prompt asking you if you'd like to create a superuser account for the authentication system. Go ahead and do that." I'm…
user460847
  • 1,578
  • 6
  • 25
  • 43
2
votes
1 answer

django dev server not loading on google chrome

I set up my first django server using python manage.py runserver 0.0.0.0:8000 command. Why is google chrome not loading localhost:8000/ for me even though Microsoft edge is?
2
votes
3 answers

custom django-admin commands - AttributeError: 'Command' object has no attribute 'stdout'

Following the example of writing a custom django-admin command here, I've created the following custom command: from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): args = '' help = 'Test command' …
Jonathan Livni
  • 101,334
  • 104
  • 266
  • 359
2
votes
1 answer

How to set the timeout for Django development server (runserver)?

I have run the Django development server with python.exe manage.py runserver How can I set timeout (for example - 5 sec.) for runserver? I want to test the system behavior when timeout breaks the long requests.
Y.N
  • 4,989
  • 7
  • 34
  • 61
2
votes
0 answers

trigger call_command('syncdb', all=True) from a custom management command

I am trying to add standard django permissions by using django.core.management.call_command When I type it in the console everything works fine, i.e. $./manage.py syncdb --all This creates all permissions for existing django models (even for those…
2
votes
2 answers

Error While Running python manage.py shell

I'm following the documentation of Django, and I've encountered a problem running this command: python manage.py shell This is the error I get: File "manage.py", line 7 from django.core.management import execute_from_command_line TabError:…
Benyamin Noori
  • 860
  • 1
  • 8
  • 24
2
votes
1 answer

Running a Django Management command - triggered by site visitor

I have a web page that uses Ajax to fetch data every 10 seconds. I want to instead call it every 60 seconds and make the Ajax view to start a management command: "python manage.py collect_ticker -i". This way I can collect ticker data while the…
Ami
  • 495
  • 1
  • 4
  • 13
2
votes
1 answer

manage.py flag to force unattended command?

I am reading this tutorial: Installing and Configuring Graphite and Statsd on an Ubuntu 12.04 VPS and I am working to automatize everything is possible then there is one step of this tutorial that is giving me crazy: Next, we will configure the…
Rubendob
  • 1,614
  • 3
  • 22
  • 34