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
0
votes
1 answer

import json not working with shell and manage.py Django

I am writing some python scripts for my Django project. And I am running it using manage.py and shell. import json is not working if I am running it with manage.py and sell. But it is working if I try without shell and manage.py I don't know why…
Hardik Raval
  • 3,406
  • 1
  • 26
  • 28
0
votes
0 answers

i ran "Django manage.py runserver" and i get a "NodeNotFoundError"

newbie to python so i followed "Django by example" after i finished the blog project i committed to GitHub repository master. Only for me to clone the project later and
0
votes
1 answer

EmailMultiAlternatives not sending BCC emails

I have a Django management command defined like this: class Command(BaseCommand): help = "Sends out an email with new jobs added in a timespan of a week" def handle(self, *args, **options): time_a_week_ago = timezone.now() -…
0
votes
1 answer

Django-CMS, how to resolve a named apphook URL from a management command?

I've got a management command which sends email. In this email, I'd like to include a URL to a signup form, which is an apphook module in the CMS. How can I resolve the URL to that path? From the management command, I only see the plain URLconf,…
vdboor
  • 21,914
  • 12
  • 83
  • 96
0
votes
0 answers

Django Rest Framework — no module named rest_framework. Rest_framework is installed and venv is active

I clone repository from github on my second computer, runserver does works but when typing python manage.py makemigrations Bash notice about 'no module name rest_framework' This situation is a second time. Lately I install again rest_framework but…
0
votes
1 answer

Django deployment on heroku throws django.db.utils.OperationalError: no such table: auth_user

I'm deploying on a free Heroku dyno. This is my Procfile: release: python manage.py migrate web: gunicorn app.wsgi --log-file - I've already made migrations locally and I'm deploying through Github. I figured out that the line release: python…
arghhjayy
  • 127
  • 1
  • 8
0
votes
1 answer

Getting PermissionError: [Errno 13] Permission denied While doing ./manage.py collecstatic

I am getting PermissionError: [Errno 13] Permission denied: while I am running collectstatic command. Previously I was used s3 for static files, but I don't want to use that. I was switching back to Django's Native static handler. I reverted the…
0
votes
3 answers

Problem with MULTPLE SETTINGS File. Django/Python

I am trying to run a Django project on my windows machine. I am getting nomodulefounderror. The project consists of multiple settings files for prod, Development, and Test. I am using a virtual environment, Python 2.7 and Django 1.10 versions I need…
0
votes
1 answer

not working running python manage.py rusnerver

when running that command python manage.py runserver I get this error django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? I try to pip install mysqlclient and get this Command…
0
votes
0 answers

setting DJANGO_SETTINGS_MODULE environment variable

I have a Django project which I got from the previous developer and I am in the process of setting up my local test environment. I can successfully get manage.py run server working without any errors, but unable to access 127.0.0.1:8000 or…
Krish
  • 29
  • 4
0
votes
1 answer

How to run another python file in the same directory with manage.py

I cloned a GitHub repo. Everything is working fine. But I need to populate sample data for all the endpoints. There about 20 files with sample data for each endpoint. Then there is a file(dataload.py) in the root folder that should call all those 20…
techstack
  • 1,367
  • 4
  • 30
  • 61
0
votes
0 answers

After running python manage.py createsuperuser nothing happened

I am trying to createsuperuser. I'm in my project. When I type python manage.py createsuperuser nothing happens, it looks like POWERSHELL has hung up. After this command I only see blank page without next line to enter next command. I'm learning…
user10732864
0
votes
0 answers

Django API raises an error "No such file or directory: 'manage.py'" when requested

This might seem like an already asked question but I have searched for an answer for a week now and got nothing. The problem is I have developed an API using Django which is hosted on a server. Now when I run the following command to initiate the…
0
votes
1 answer

Command object has no attribute meta, Django management commands

I am trying to run a one time management command to pre-populate a db. Here is the model: class ZipCode(models.Model): zip_code = models.CharField(max_length=7) latitude = models.DecimalField(decimal_places=6, max_digits =12) longitude =…
0
votes
1 answer

This site can’t be reached localhost refused to connect. No Django procress running

I have the weirdest bug ever: yesterday in the morning I was using my program without any issues (web application made with Django + react/redux & javascript). After some bugs I decide to take again from scratch so I clone the git then I am trying…
FrozzenFinger
  • 1,482
  • 2
  • 14
  • 35