~:$
Instead of building everything from scratch, take a look on open source available solutions. Modify them to meet your own requirements.
Neo
~:$
A simple field check tells you either it is employee or customer. The field in user model as user type.
~:$
Or you can make two more tables one for employees and second for customers and make one to one relationship with user model.
Neo
Anonymous
Should I join a service based startup, where I will be a django developer or MNC (service based)?
Anonymous
Like cognizant,tcs etc.
Anonymous
I create sign up form where user choose user type(parents,teacher, college, student) i use choice field and but when i create admin they give me not null constraints failed in occupation , occupation is my user type choice field name
Anonymous
~:$
Divyansh
How can I categories post in Django
~:$
Divyansh
How can I add category on my posts model in django
Divyansh
Am begginer I need reference
Divyansh
Okay thanks ☺️
Pavel
Does anybody use purgecss with Django? Do u have special configuration? Coz I have missed classes
Sopan
Bharathwajan
Share little more information
actually i am using authendicate () function in django to authorize my users the data is stored in postgres
Sopan
oh ...very good to know 🙂
Sopan
🍻
Bharathwajan
🥂
OneRepublic
Hi guys. I'm printing a table using the below code 👇
<tbody>
{% for code in status %}
{% for resp_size in size %}
{% for directory in directory_link %}
<tr>
<td>{{ directory }}</td>
<td>{{ resp_size }}</td>
<td>{{ code }}</td>
</tr>
{% endfor %}
{% endfor %}
{% endfor %}
</tbody>
But the problem is the nested for loop. I can't use *continue* keyword here.
is there any other way to do this?
OneRepublic
The innermost loop is being iterative till it doesn't get over. I could have used *continue* keyword there but django doesn't allow to use it.
OneRepublic
I got this one 👆
OneRepublic
context = zip(list1, list2, list3)
and then just pass the 'context' as usual in the render function as dictionary and in template you'll simply unpack the zip function like this:-
{% for item1, item2, item3 in context %}
'''Something'''
{% endfor %}
highnes
I have looped an <a> on django template, but href acts as localhost/url instead of url
Eg. google.com is localhost/ google.com
highnes
Please help me with this
Beka
Hello
Can you please take a look the code and let me know any solution?
https://pastebin.com/dSu3vPWz
For now I'm showing the 403 Forbidden error..
Is it possible to redirect new users( that do not have any data yet), to the create form?
Becaus for the second return for me redirect is not working and decided to throw an error message... but idealy need to redirect to create form
Abdul Aziz
Guys can i define a function in views.py and use it in my templates?
Sho
Beka
parandhamudu
Any one knows as micro services
Umar
Server error 505 when debug=False
Andrey
people who are familiar with pycurl? I
try to log in to the django admin panel via pycurl, does not give, writes "CSRF cookie not set" how do I work with cookies in pycurl and how to set CSRF cookies?
Anonymous
Should I join a service based startup or a MNC?
Anonymous
Hi guys
Anonymous
I need books about Django Rest Api from zero ? Who have plz help
Beka
How much it's good to use return redirect in method queryset?
Anonymous
how can i fetch current location of user?
Beka
Anonymous
In group users dont want help to others !
#Question ?
Why created this group ?
Yusuf
Beka
1K online users.. nobody is willing to help..
Anonymous
Beka
No idea.. maybe too much busy, lol
Anonymous
Anonymous
Anonymous
Me too
Umar
Anonymous
I will be create framework for web most better from django :)
If dont want help plz remove group
Good luck all onlines !
Beka
Umar
No
Umar
Local
Umar
I've deployed it with debug true
M
Hi guys i asked this earlier also and tried to implement from stackoverflow somehow did not work. Anyone can give me idea how can i manage the session of user so he can login from more than one seasioms. E.g. i logged into a tab and then when i again try to login from same user in incognito it will say user already logged in and deny to access site
Thanks
Beka
Umar
No stack trace..
Just get/URL/
Beka
Anonymous
Shady stuff like?..i will work on drf apis specially
DK
Can anyone help me. There is website. Daily new article page is created. Every page link is saved in database. In django we need to add url in URL.py. how can I add all link to url.py automatically.
DK
Harshal
Hi all,
need to know any readymade tools/softwares for django WEB GUI development
Any help appreciated
Thanks...
mukul
∆$¶u
Gitonga
Fox
Hey guys ,
Is it possible to add search field in the django admin index page?
Anonymous
Fox
Yes
How do you do that? I'm aware that I can add search in the list view of the django admin but not on the django admin index page.
Anonymous
I recommend you read the documentation a bit, see I'll leave you this link.
Anonymous
https://code.djangoproject.com/wiki/searchengine
Anonymous
https://learndjango.com/tutorials/django-search-tutorial
david john