• Register

Recent questions tagged django

1 vote
1 answer 5 views
Problem: tried to import reverse from django.core.urlresolvers. Using Python 3.5.2, Django 2.0 and MySQL. modulenotfounderror: no module named 'django.core.urlresolvers'
asked 5 days ago Sofia Castro 4.2k points
0 votes
1 answer 14 views
Problem: no python application found, check your startup logs for errors.
asked Feb 21 charles mathews 3.8k points
0 votes
1 answer 11 views
Problem: commanderror: you must set settings.allowed_hosts if debug is false.
asked Feb 13 Shovo210 3.1k points
0 votes
1 answer 52 views
Problem: I have this piece of code which creates a new note..WHen I try to print I get the following error even though it prints the output Error: C:\Python27\Basics\OOP\formytesting>python notebook.py Memo=This is my first memo, Tag=example Traceback (most recent call last): File "notebook.py", line 14, in <module> print(firstnote) TypeError: __str__ returned non-string (type NoneType)
asked Jan 8 Mashhoodch 9.6k points
0 votes
1 answer 38 views
Problem: I am trying to implement Social Login in Django. I have already installed social_auth_app_django with below command pip install social-auth-app-django And I also added this to installed apps in my settings file. INSTALLED_APPS = [ 'django.contrib.admin', ' ... migration python manage.py migrate ModuleNotFoundError : No module named mysite.core Note. I am using Python 3.6.2andDjango 1.11.7
asked Dec 25, 2020 sasha 13.2k points
0 votes
1 answer 113 views
Problem: Django I have the following models: class Group(models.Model): name = models.CharField(max_length=100) parent_group = models.ManyToManyField("self", blank=True) def __unicode__(self): return self.name class Block(models.Model): name = models.CharField(max_length= ... return blocks But b1.group.block_set returns me a RelatedManager object that cannot be repeated. What to do? What's wrong?
asked Dec 13, 2020 sasha 13.2k points
0 votes
1 answer 22 views
Problem: There is a database on postgresql. There is a Django script that collects data. The problem is that there is a LOT of data. The table, with which it is necessary to operate, contains, according to conservative estimates, from hundreds of millions ... {}'.format(str(self.origination_host), str(self.termination_host)) class Meta: verbose_name = 'CDR data' verbose_name_plural = 'CDR data'
asked Dec 7, 2020 sasha 13.2k points
0 votes
1 answer 36 views
Problem: I got stuck in the process when I wanted to deploy a django project to the server today. When I run python manage.py runserveron the server, the terminal shows me this: Traceback (most recent call last): File "manage.py", ... "dict.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv) Can anyone give me some advice? Thank you very much
asked Dec 7, 2020 sasha 13.2k points
1 vote
1 answer 50 views
TypeError during django project Got this message on the error page: TypeError at /music/1/ detail() got an unexpected keyword argument 'pk' Request Method: GET Request URL: http://127.0.0.1:8000/listing/1/ Exception Type: TypeError detail() got an unexpected keyword argument 'pk' This ... , # /music/<album_id>/favorite url(r'^(?P<album_id>[0-9]+)/favorite/$', views.favorite, name = 'favorite'), ]
asked Nov 9, 2020 kevin muturi 220 points
0 votes
1 answer 20 views
0 votes
2 answers 145 views
I want to run a Django application in PyCharm which works on MySQL DB. I am unable to connect my program to the database. When I am trying to install MySQLclient or MySQL-python I am getting the error: Failed building wheel for MySQLclient Please help me out in connecting my Django program with MySQL database.
asked Oct 24, 2020 psandprop 2.4k points
0 votes
1 answer 12 views
I downloaded python 3.8.6 on windows 10 and need some guidance on how to install Django
asked Oct 1, 2020 turpotu 140 points
0 votes
1 answer 162 views
Problem: I am facing this error in my logs with the django app. Initially I thought such errors tend to occur if using Python 2.x but in my virtual environment you can see Python - 3.6.5. Django - 2.0.7. VESTA Control Panel with the wsgi. My Error ... '] = 'main.settings' -import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() I will be very happy for any help.
asked Aug 24, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 125 views
Problem: I have freshly migrated my project from the old python2 to the new python3 and it has hundreds of the ForeignKey relations. I have very basic knowledge related to python. Using a solution to go line by line and add on_delete argument is not the possible. What ... it does not look like catching it somehow. Looking for a Python expert who can try to fix my above Python error very quickly.
asked Jul 15, 2020 Raphael Pacheco 4.9k points
1 vote
1 answer 98 views
Problem: I have fundamental knowledge of Django. I have learned Django with the help of online tutorials. Recently I have started working on Django. I have recently tried to upgrade my Django to the Django 1.10. Since then I am often facing below error: TypeError: ... ), ] I have only fundamental knowledge about Django so unable to fix the above error. Kindly help me in fixing above Django error.
asked Jun 8, 2020 Martin K 6.6k points