Mihir
how to let user allow same for multiple times after signup, i have created employment model where i have used onetoone filed for user identification but it is not allowing me to create \n number of times to submit same form without specifying null=true in onetoone field., so how it possible to allow user fillup same form \n number of times with thier identity., so i can rener update form with user identity.
Mihir
Same form*
J
Can anyone teach me django
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Santana
A.
How to use font awsome in admin django panel
Koen de
How to use font awsome in admin django panel
Since Django uses its own template mechanism for the admin panels too,
You can easily override the templates used by Django. See this article: https://realpython.com/customize-django-admin-python/
Or get some inspiration from this project: https://github.com/fabiocaccamo/django-admin-interface
Hamza
How can I return as this in serializers
Hamza
How can I return foriegn key field
In model as nested sreilazer
Raad
Hello
I have lists of countries, states, cities.
Each country has states and each states has cities.
I added the states and it working fine. For example if I select United state, it shows me the list of the states.
My problem with cities, When I select the state, it pulls all the cities which around 4000+ cities.
I want to get the list of the state cities only not all the US cities
Here is my code
https://pastebin.com/DSqHg6je
Koen de
Raad
So the states are exist since the code working till the city part.
Sorry if I'm confusing you but the code will add countries first and then add the states. Last part is to add the cities
Raad
So what is the right way to add the cities? is there any other way to load them directly from the json file instead of adding them in the database? I'm building a saas product and they should be available to all clients.
Koen de
Raad
Koen de
Manheevak
My ValidationError in django forms are not showing error here is the forms.py link https://dpaste.org/KuvLg#L5,10
Raad
Koen de
Yes
Okay replace;
state=st.state_id
With:
state_id=st.state_id
Koen de
Raad
Raad
Raad
Okay replace;
state=st.state_id
With:
state_id=st.state_id
TypeError: City() got an unexpected keyword argument 'state_id'
I got this error
when I change the state_id to anything else, I get this error
DETAIL: Key (test_id)=(7) is not present in table "property_state".
Koen de
Raad
Koen de
Raad
Manheevak
yeah it was not executed
Manheevak
i fixed it now
Koen de
When you view the cities in the database or Django admin, are they related to a State?
Raad
Koen de
Both have nothing to do with the import. Check if there is any filtering in the dropdowns. At least State should be provided to filter the cities.
Raad
Raad
Hamza
Hamza
Original exception text was: 'config' object has no attribute 'playstore'.
Arash
how to save filled form to database with class based views?
Shivam
A.
I really need to send image for my question
A.
mahdi
Hello friends .
Can you please explain the following concepts to me.
1-Annotate ?
2-Q?
3-F?
4-balk_create?
wayne
An error has occurred. I was making a form for adding news and got to writing a condition, but something went wrong. An error page appears when submitting the form
https://hastebin.com/eputotiyev.py
Hamza
NightE
How can I prevent a user from accessing other users' profiles ?
NightE
I have searched burt I still need help
Юхим
Please anyone have an idea how to integrate a Dynamic Newsletter in a Django project🙏
..
I hv one excel upload feature in my django project. The file goes through few level of validations for each row and gets saved to database. I want to show real time processing progress status. How do I do it? Please help if you know any package or tutorial
Of course
docker run -d -p 4000:3000 -v $(pwd):/app
docker: invalid reference format.
error
Of course
on windows
Koen de
Eslam
guys how i can create script.py for open project by one click
Doragonsureiyā
Hamza
"detail": "Authentication credentials were not provided."
Hamza
Hamza
Hamza
How can I solve it
Ajay
https://ctxt.io/2/AAAQCA64FQ #help_
Ajay
ayuLS
hi, i am using django with heroku, when i make change in local repository and then make deploy, my database (user) goes missing or returns to the way it was.
is there a way to pull database from heroku to local repository ?
..