Zey
I am getting this error
File "C:\Python\Python38\lib\site-packages\django\core\handlers\base.py", line 124, in _get_response
raise ValueError(
ValueError: The view home.views.seller_register didn't return an HttpResponse object. It returned None instead.
[03/Apr/2021 21:43:10] "POST /seller_register/ HTTP/1.1" 500 60706
Harsh
if a.is_valid():
else for this if
Zey
Zey
Harsh
exactly thasts why you are receiving this error because if a.is_valid(): is false then its looking for else but its not their and neither the statement for if method =post
Zey
But why it is important to add that bcz I had not added in others but it worked
Harsh
Harsh
Zey
Ok, Thanks once again
Harsh
NP
Akhil
Can anyone tell me how to transfer postgresql database to SQLite
Akhil
??
Mareedu
Anyone Good in Django Framework?
Mareedu
Sign in with Fire Based Account's
Mareedu
I'm Generated up to API Key Next How to Integrate the Code in Django Framework
Mareedu
Login With Facebook
Zey
If I am using usercreationform for both user and seller so how I will know which is seller and which is user?
Umar
Zey
Groups
Can you explain it in more detail?
Umar
Django has groups to group user types
Zey
Like multiple user type
Umar
Like roles
Umar
Check official docs
Zey
Ok, Thanks
Kamal
Guys, hello everyone, I am writing (trying) tests for a view that inherits from generic.CreateView, the difficulty is that I have a field in the model that refers to the User model, in the view I get the user's request.user and save it in the model field generic.CreateView, I don't know how to organize it in tests https://pastebin.com/0put8zQN
Patience
Try Apscheduler
Thank you a lot, I will try it.
Celery is not working.
Mirco
By changing to another one it does not solve anything
Try Django Q if you wanna something easier to configure and maintain
Patience
Patience
"from future imports must occur at the beginning of the file"
Patience
future
Patience
There is double underscore on beginning and end on future.
Sai
Hi, I need a better tutorial to setup the weaockets in Django.
Rishabh
If there is lot of change required in admin panel(like for design) then you should go for react or angular
Rishabh
Yes, you can go for it
Tawfiq
Guys
Can someone please explain the get_context_data() for me
Tukhtamurod
create category table in db
Tukhtamurod
how would i know?? before creating a website you should clearly define models and create draft of database schema with all entity and relationship tables, after making sure everything is fine, then you have to implement it
Tukhtamurod
the core part of backend application is not just your view functions, the most important part is db part, if your db is well implemented, you will have much less difficulty in your project
Patience
Ali
Hi all. I've a problem. X model related the Y model. I need to see to X models fields. How can i do?
Patience
Ali
X(id, name,brand,size) , Y(X foreign key, ...) . I want to see X.brand in to the Y model) How can i do that.
Mirco
Patience
Patience
Patience
Ali
It works for me. X is the models class name as you said.
oh thanks. Sorry for my English. I need to fields of the Model(as X) in to the Y model. For example: X model has this fields= name,color_code. Y model has this field = X(related with ForeignKey) and other fields parameter. But i want to Y model include the color_code in the Admin panel. I hopefully understand me
Mohammad
Do default = None and Null = true do the same thing? No data is to be recorded in the field
Agent Q
Anonymous
Hii guys , I am begginer to this django
Anonymous
Can you suggest some resources to learn django
odin
Zey
I am also making e-commerce website and when u will start the project , project will get bigger and bigger and how many tables u should add it depends upon your requirement
Tukhtamurod
Anonymous
Amir m
Hi
In windows we runserver and can see my site
What should we do inside the github?
Patience
Tukhtamurod
Patience
Tukhtamurod
Version control system
Amir m
In setings and on github pages
Amir m
You can get a address for your cods
Patience
Tukhtamurod
Tukhtamurod
Amir m