• Register

Recent questions tagged django

0 votes
1 answer 1 view
Problem: The current path, account/login/, didn't match any of these?What is the problem here?. The redirect works, I have a feeling its in urlpatterns but cannot for the life figure it out. Driving me crazy today. Thanks for the help and sorry for the essay!
asked 2 days ago sumaiya simi 43.9k points
0 votes
1 answer 4 views
Problem: I have an application in Django and I put it my static files in a bucket on AWS S3. However, when I try to connect in my application the bucket S3 return 403 forbidden for static files.I tried to change settings putting AWS_DEFAULT_ACL like 'public', 'private' and None, but the problem persists.Obs.My app is in Heroku.How can I solve this problem?
asked 3 days ago sumaiya simi 43.9k points
0 votes
1 answer 3 views
Problem: I am currently trying out Django. I use the namespace argument in one of my include()s in urls.py. When I run the server and try to browse, I get this error. File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\urls\conf.py", ... ?P<wine_id>[0-9]+)/$', views.wine_detail, name='wine_detail'), ] What do I pass the app_name as stated in the error message?
asked 3 days ago anika11 32k points
0 votes
1 answer 3 views
Problem: My django website was working in debuging mode but when I put it on the server and turned it to production mode, my website shows me the error: We're sorry, but something went wrong. The issue has been logged for investigation. Please try ... commands python manage.py collectstatic python manage.py migrate python manage.py makemigrations And the problem still exists. What else can I do?
asked 3 days ago anika11 32k points
0 votes
1 answer 3 views
Problem: Why I got the error > Django.core.exceptions.improperlyconfigured: error loading mysqldb module.
asked 4 days ago ummeshani 8.8k points
1 vote
1 answer 6 views
Problem: I am getting this error: Type object 'datetime.datetime' has no attribute 'timedelta'.
asked 4 days ago PkGuy 23.5k points
0 votes
1 answer 4 views
Problem: I got error on my django rest framework, I am running it on windows 10 OS. this is the entire error: Traceback (most recent call last): File "manage.py", line 15, in <module> execute_from_command_line(sys.argv) File "c:\django\django\django\core\ ... api-auth/', include('rest_framework.urls', namespace='rest_framework')) ] does anyone have an idea about my situation? thanks in advance...
asked 5 days ago Yeamin 21.4k points
0 votes
1 answer 3 views
Problem: I'm building a race registration application in django and I'm having trouble saving a many2many field of my model in a CreateView generic view. I am excluding the event field from the view because it allows you to select an event rather than having it automatically ... I am receiving a ValueError: "" needs to have a value for field "id" before this many-to-many relationship can be used.
asked 5 days ago padma1 34.3k points
0 votes
1 answer 10 views
Problem: Why I got the error > Unicodedecodeerror: 'ascii' codec can't decode byte ordinal not in range(128)
asked 6 days ago ummeshani 8.8k points
0 votes
1 answer 6 views
Problem: I am in trouble while solving it .. please help me .. Mysql turn off foreign key constraint
asked Apr 27 Ifra 34.7k points
1 vote
1 answer 6 views
Problem: Any one here to figure out thids problem? Typeerror: super() argument 1 must be type, not classobj.
asked Apr 26 PkGuy 23.5k points
0 votes
1 answer 7 views
Problem: How can you solve a 502 error?I believe whats causing the 502 error is a nested loop that contains heavy calculations. It would take up to 2 minutes for it to finish that block of code on my local server. However on a public server I just get this 502 Bad Gateway nginx/1.10.3 (Ubuntu).
asked Apr 26 sumaiya simi 43.9k points
0 votes
1 answer 3 views
Problem: I'm working on my project for a course and I'm totally stuck right now. I'm creating a website to sell products through paypal and the paypal return/cancel pages are not rendering properly. I've followed the examples in my lessons and checked the code a hundred times but ... '' not found. '' is not a valid view function or pattern name. 1 : {% load staticfiles %} 2 : <!DOCTYPE html>
asked Apr 26 Yeamin 21.4k points
0 votes
1 answer 5 views
Problem: I refer to following GitHub repo which is based on Django 2.0 and cookiecutter-django: github.com/Apfelschuss/apfelschuss/tree/c8851430201daeb7d1d81c5a6b3c8a639ea27b02 I am getting the following error when trying to run the app: RuntimeError: Model class votes.models.Author ... am doing wrong? If anyone is interested how to run the docker container of the repo. It is described here.
asked Apr 26 Yeamin 21.4k points
0 votes
1 answer 18 views
Problem: Python django error OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '<frozen importlib._bootstrap>'.I am new to Django so I have less information about this error.
asked Apr 25 sumaiya simi 43.9k points
1 vote
1 answer 18 views
Problem : How to solve this > Exception Type: PicklingError at / Exception Value: Can't pickle <type 'function'>: attribute lookup __builtin__.function failed
asked Apr 22 Abik Dey 4k points
0 votes
1 answer 7 views
Problem: Please solve it &hellip; Because I am unable to find out the solution .. The value of the 'access-control-allow-origin' header in the response must not be the wildcard '*'
asked Apr 21 Ifra 34.7k points
0 votes
1 answer 14 views
Problem: I am unable to understand this problem .. Please suggest me a better solution to solve it ..bash: gunicorn: command not found
asked Apr 20 Ifra 34.7k points
0 votes
1 answer 4 views
Problem: Which is a common syntax error in Django urls?
asked Apr 19 anika11 32k points
0 votes
1 answer 2 views
Problem: I have the following models in models.py: class ListinoTraduttore(models.Model): traduttore = models.ForeignKey('Traduttore', related_name='Traduttore') linguaDa = models.ForeignKey(Lingua, related_name = "linguaDa") linguaA = models.ForeignKey(Lingua, related_name ... /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages']
asked Apr 18 munim01 21k points