Jesus
Hello, I have just imported my django project into a windows machine, using docker-compose, and managed to run it. it says the development server started at http://0.0.0.0:8000 but when i open that address is not working, any idea?
adding to this, when I try to access from other device within the same network using this machine IP, it did work. But accessing it from this machine using 0.0.0.0:8000 doesnt. This issue did not happen while programming in Mac or Ubuntu, only on Windows.
Bral Bral
No, if Sentry gets errors it means you didn't write test for that scenario
it is in this case that it is immediately clear what needs to be added.
Mirco
it is in this case that it is immediately clear what needs to be added.
Yup, it's obvious you cannot immagine all the possible edge cases but the more tests you write the less errors you will have
Anonymous
in my url i have situation name of my webiste/en/en/ i try to add prefix_default_language = False, but it doesn't work
Jb
Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/accounts/register.html Using the URLconf defined in telusko.urls, Django tried these URL patterns, in this order: [name='index'] admin/ accounts/ register [name='register'] ^media/(?P<path>.*)$ The current path, accounts/register.html, didn't match any of these. You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
Doragonsureiyā
Thanks for sharing
You're welcome! 😊
.
Hello all. Im using inlineformset_factory. Getting error while submitting the formset. Any help please
Mirco
Share the error, we don't have magic balls
.
It's "NOT NULL constraints failed : course_courserequirements.Courseid
Mirco
Share the code using pastebin or similar
.
https://pastebin.com/KbYujSdv
Mirco
First suggestion, study python and its PEP8
Mirco
Second one, remove those unicode stuff and use python 3
Mirco
Into form valid your course.pk is None so you have to check if the course.save() works properly
Andrew
hi guys, can someone share with me book two scoops of django v2.0 or higher?
Mirco
And I suggest you to wait or start buying the 3.0
Andrew
hehe, If I could buy it now I would not write here. Paying 50$ for a book while living on 200$ a month is kinda funny. But some day i will buy it https://www.feldroy.com/products/two-scoops-of-django-3-x?variant=31605362196567
Mirco
The end of the story is pretty simple, I'm sorry you cannot buy it but here we don't share books that are not available for free, so when you will have the possibility you will buy it
Compro
Hi
Compro
I am trying to bring the add button when selecting a foreign key from dropdown in a custom form.
Compro
https://gitlab.com/Compro-Prasad/school/-/blob/master/student_profile/admin.py#L98
Compro
^ This is the line where the form gets initialized. Django admin just shows the dropdown
Compro
But not the add and edit buttons
Compro
I tried using solution from https://stackoverflow.com/questions/52953680/django-admin-missing-add-edit-buttons-when-using-get-form
Compro
But the popup doesn't appear
Compro
It appears on the same page
Compro
https://gitlab.com/Compro-Prasad/school/-/blob/master/student_profile/admin.py#L98
I haven't written the popup code yet in this commit
193J1A04B6
https://del.dog/ithaduxeso
193J1A04B6
when I am running django-admin I am getting this error
Anonymous
Hi all I am new to Django and python. I trying to create one form and add that from value to DB using Rest API for that I tried lot. but I am getting error
Anonymous
Please any one guide me with simple form using Django Rest api with UVE js
Anonymous
I eagerly waiting for response
Mirco
You just need to learn how to send a proper POST
Anonymous
I want tutorial from scratch step by step
Mirco
Loof for Vue + DRF Crud tutorial
Anonymous
Yes
Anonymous
any links
Doragonsureiyā
any links
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
K
hey anyone can tell me how to start with django
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Sarthak
Help me please
you should read the last message of traceback, always and in this case the error is of paranthesis this is the first interpretation of this error. did you know this? if this doesn't work, then we should debug more
bikrant
Is playlist by durga sir on rest framework very good or is there something better??
Doragonsureiyā
Is playlist by durga sir on rest framework very good or is there something better??
That is not a Python specific question, please move to @PythonOfftopic and ask there.
Roman
Hi guys, I wanted to ask 1 thing, I delted migrations folder and sqllite database, but still I am able to run migrate without makemigrations even tho I have models created how is it possible ?
Adan
when you have just created a new django project, you can also migrate without makemigrate,,
Angel
I have a django=1.10 legacy, i would like a form to improve the perfomace. Some idea?
Angel
but, You know what. if i upgrade 1.11 the site may be will stop
Angel
You know, it are use mezzanine.
Mirco
That's why you need to do it step by step
Mirco
But we are at Django 3.x , it's better you start upgrading your site
Angel
Yeah, I am thinking to upgrade. but you know what the site structure is a mess.
Angel
Do you know how works in short celery?
Angel
3 simple words?
Angel
Mirco you think is better to start new project from zero?
Angel
instead of upgrade to 3.0
Angel
?
Artur
Hello everybody! I have trouble when I run command “python manage.py runserver” I hit with issue UnicodeDecodeError: “utf-8” and etc. how can I fix it? Python - 3.8.3
Yergali
Hello everyone. The documentation says that icontains are not case-insensitive, but when I enter Tengri and tengri gives different results in russian. who knows why?
Jesus
Hi, anyone knows how to solve pylint erros from unrecognized imports in VSCode? I am using a docker-compose so I cannot select the environment python.exe, i have tried searching on google but couldnt find anything
محمد دلشاد
hey guys i have done all basic stuffs in django then also completed the serializers and rest framework stufff
محمد دلشاد
i just wanted if anyone can recommend me for the next in the same platform
محمد دلشاد
Also one more query that i am working with method based views should i really need to work with class based and geniric views?
Apleoxero
Does pythonanywhere supports implementation of firebase in Django????? can anyone help??? I tried hard but can't get the way can anyone help me out???
Amit
Also one more query that i am working with method based views should i really need to work with class based and geniric views?
It's up to u but there are advantages of using class based and generic views. Code will be less and some errors will be handle by class.
Prasanna
Django rest login api gives 403 even though it has csrfexempt, it was working fine before. Can anyone help?
OnlyGod
Hello everyone, Here is the problem, I'm trying to create a form for a django model(name :lesson)that has a foreign key from another django model (name:course) and I'm getting errors, but in creating just the course model form I have no errors
Anonymous
why SystemError('unknown opcode') error comes
Rajvir
Class 'user_data' has no 'objects' member even after instaling pylint the prob remains same Help please