DevilAstra
Can anyone help?
Pradeep
But when I login in and visit to some other page and without logout if I go to login URL it allow me and show me login form
Glen
Hey guys I'm new to Django programming, please I need help
Glen
Thanks
R
But when I login in and visit to some other page and without logout if I go to login URL it allow me and show me login form
you could overwrite login view and check if user is authenticated before rendering the login form, and if its already authenticated just redirect him wherever you wanr
Pradeep
That's what I did bit still not working
Anonymous
I compared it Django vs PHP on google I found Django very easy when I practically started doing Django then I found it's very hard to learn
Anonymous
Is it hard for beginners?
Anonymous
Is it hard for beginners?
Python knowledge is beneficial
Anonymous
👍Yaa
Anonymous
Django doc is added value
00skeptic
If I am going to make a project that involves a dashboard and a product landing page, should I create app for dashboard, and place the rest of the dashboard features as separate apps inside the dashboard app folder ?
00skeptic
So if the frontend is in angular and backend is just api's, and for api's I am just using views of django returning json string, and not DRF, what can I use to generate a documentation ? Should I use apidocjs ?
00skeptic
Django doc is added value
And it is one of the best well documented frameworks.
00skeptic
Is it hard for beginners?
Just follow tutorial in the official documentation and you will be well. I did the same for learning django. Also python proficiency will benefit you.
Anonymous
Hi
Anonymous
Needed help for social authentication in django
Anonymous
Not working with oracle backends
Anonymous
Works with sql lite
Anonymous
I am using django 1.11 and oracle 11 xe
Anonymous
I am fresher in django
Anonymous
Django_Social
Prosto
django-allauth
+ this one better
Googlom
first get all users that belong to group, then filter policy_blanks by this list of users? or is there a better way?
Mr. Rude
Is the relationship one to many here?
Mr. Rude
Between users and policy_blanks
Googlom
yes
Mr. Rude
That's what comes to my mind
Akash
Anyone know a place where I can download some good django templates to start a basic website but not basic blog kind of. So I can launch a basic website live and then lean by making changes. I have already took a few django video courses, but all I can do is a very basic ugly blog kind of things. I am looking to start with a cool template and then make changes to learn quickly.
Rajjix
Anyone know a place where I can download some good django templates to start a basic website but not basic blog kind of. So I can launch a basic website live and then lean by making changes. I have already took a few django video courses, but all I can do is a very basic ugly blog kind of things. I am looking to start with a cool template and then make changes to learn quickly.
it’s kinda hard to get something like this, i suggest using codepen to find specific cool templates for specific pages or views and with ur knowledge implement them, bootstrap is good but somehow basic, eventually you’ll have to learn react do get all the cool stuff and really impress viewers regarding the stuff on client side.
Денис
Anyone know a place where I can download some good django templates to start a basic website but not basic blog kind of. So I can launch a basic website live and then lean by making changes. I have already took a few django video courses, but all I can do is a very basic ugly blog kind of things. I am looking to start with a cool template and then make changes to learn quickly.
I double the previous speaker. Django is yet another backend framework, that's it. It's not about frontend, so you can take any template (or any website appearance) as an idea and work on it. Think about Django as a layer between your frontend and your DB
Денис
It can suddenly happen so that you'll need only Django REST API and everything else implemented as some API-oriented frontend
Akash
it’s kinda hard to get something like this, i suggest using codepen to find specific cool templates for specific pages or views and with ur knowledge implement them, bootstrap is good but somehow basic, eventually you’ll have to learn react do get all the cool stuff and really impress viewers regarding the stuff on client side.
Yeah I am a bit lost. I self taught myself python a year ago, and is working with python since then. Django I took some video tutorials, but it's not really taking me anywhere. I will take your advice to try codepen and react
Rajjix
It can suddenly happen so that you'll need only Django REST API and everything else implemented as some API-oriented frontend
and that’s where hell breaks loose, when you realize you’ll have to learn javascript, react, redux and getting in more about header requests which isn’t much compared to others, but overall it’s really fun and exciting stuff
Anders (izzno / gooood) 🇳🇴
Is it possible for A model to have choices based on a foreign key or simuler, say you choose CAR then you also get the choices of HP, if you choose PEN you get the choice of COLOR.
R
Is it possible for A model to have choices based on a foreign key or simuler, say you choose CAR then you also get the choices of HP, if you choose PEN you get the choice of COLOR.
https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html
Anders (izzno / gooood) 🇳🇴
Ok, thanks.
Anders (izzno / gooood) 🇳🇴
Ill have a look.
Anders (izzno / gooood) 🇳🇴
Hm, i would like it to work in admin. This is an API
Anders (izzno / gooood) 🇳🇴
Was hoping not to have to build an admin site as well...
Anders (izzno / gooood) 🇳🇴
George
I havent tried to do it in admin
George
You can just build a form with a default queryset in the parent field and set the other queryset to none. Then make a template to fill your child field and set an ajax request to be made onchange
George
I even made a dependent field with an parameter to make forms to feed different things to my querys.
R
I would probably implement it myself as George said, but otherways you can take a look at dal which is a nice library and between its functionalities supports chained forms and I think (not sure) it suports admin integration https://django-autocomplete-light.readthedocs.io/en/master/tutorial.html#filtering-results-based-on-the-value-of-other-fields-in-the-form or how this specific admin lib (which seems outdated) is doing it to get some ideas https://github.com/runekaagaard/django-admin-flexselect
Anders (izzno / gooood) 🇳🇴
Thanks alot guys.
Anders (izzno / gooood) 🇳🇴
:)
George
Also, django-select2 is a timeloss dont try it.
George
The documentation is scarce and didnt work
Anonymous
IBM ha comprado RedHat: https://www.redhat.com/en/about/press-releases/ibm-acquire-red-hat-completely-changing-cloud-landscape-and-becoming-world%E2%80%99s-1-hybrid-cloud-provider
Mirco
English pls
-
@iFlare3G sorry, too many Django Channels :D
-
Hello. Drf. How to return fields that user can accsess through schema representation?
Pratik
Hi how do I parse PDF to html document in same format as in PDF I tried library Like pdf2text pdftotree library but it's showing misplaced text ,please help thanks
Mi
Hey guys... Could use some help here. I'm implementing a perform_created() method in a ModelViewSet but it's not even being executed in my test. Any ideas?
Mi
OK, solved
Mi
I was doing a lot of thins wrong
Mi
Sorry
Sebastian
You're welcome 😉
Anonymous
Hey guys i don't really understand should i try out django or use other frameworks of js which is better??
Anonymous
Ya that i know i was asking which is better for me trying out django or nodejs,reactjs etc
George
you should ask that to yourself
George
we're not psycologists or your boss
Anonymous
I mean can i do things with just django what other JS things can do??
George
THEY ARE DIFFERENT THINGS
George
with different purposes
Anonymous
Ohh is that so.. i thought both are for frontend and backend dev...
George
no
Anonymous
Ohk thanks i will look into that more online i guess