Doragonsureiyā
Hey guys I'm new to this group, I know basic python and oops ,to what roles can I apply and what is the pay
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Anonymous
You can handle the request by using the frontend . When the user click activate then the post method will apply
weezy
I'm able to do that by creating proxy models and two separate login registration pages but I want to add extra fields
Anonymous
Hello, How can i get '<div>' to first '</div>' after </p> in regex? <div>‌ <p></p> </div> </div> </div> </div> </div>
Doragonsureiyā
Adhil latheef
I'm using django-push-notification in my app.....when click on notification on Android device it redirect to home page of Android app...but I need redirect to another page...how to do this?.....or is this manage from frontend side?
Adhil latheef
frontend side
Okey.... thankyou...
Jerome
For example Trainer login and Member login for a gym management system
imo the best way is to keep the model as it is or at least extended just by an abstract class or a OneToOne.field relation, this is just 3 lines of code but it must be entered before you apply your first migrations. Then you're Admin, your trainers can have access to the admin dashboard as well, all the stuff is already in there for managing permissions access. For the users, it's not recommended to provide the same dashboard. You can easily manage that in your models with Mixin classes . Then you just have to tag the templates with a condition such as i's_authenticated', that sort, that allows you to display which parts of contents in your page are accessible or not to some ppl or others
Jerome
+ you have groups , it's a nice feature as well in django admin
Neeraj
How to convert
In python use type casting. Suppose. mn : 1234567890 print(mn) print(type(mn)) Output is : integer mn = str(mn) print(mn) print(type(mn)) Output is : string Use mn to you API.
Djon
Hi, why linebreaks might not work {{somevalue | linebreaks}} For example, somevalue = ‘Joel\nis a slug’, and linebreaks doesn’t change \n → <br> ---------------------- {% load static %} <!DOCTYPE html> <head> </head> <body> <code> <p> {{somevalue | linebreaks}}}} </p> </code> </body>
pranav
How to get value of Enum class ?
pranav
.value
But how to access Enum class
Maxim
But how to access Enum class
what do you mean exactly?
pranav
How to get value from enum.class present inside enum.py file
Maxim
yes
but what do you mean?
127
who know that ?why i cannt active my env
127
with this code venv\Scripts\Activate\.
127
i get this error
127
venv \ Scripts \ Activate \. : The module "venv" could not be loaded. If you want more information, run "Import-Module venv". In line: 1 character: 1 + venv \ Scripts \ Activate \. + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo: ObjectNotFound: (venv \ Scripts \ Activate \ .: String) [], CommandNotFoundException + FullyQualifiedErrorId: CouldNotAutoLoadModule
Paul
Hey, it is because you run it in the wrong folder
127
im too in env but dont worked
127
where do i have to be
Paul
just a second i will explain
127
tnx
Paul
You need to be in the directory that has the venv folder for example mine is folder called 'studybud' so from this folder i run 'env\scripts\activate ' and it goes fine
Paul
PS C:\Users\Designer\Desktop\studybud> env\scripts\activate (env) PS C:\Users\Designer\Desktop\studybud>
Paul
i had the same error as you
Paul
notice where the '>' end
127
I've already done it but I still have the same problems, I think the source command won't work
Shilpy
Can anyone guide me on how to reduce no of sql queries and their execution time provide prefetch related and cosine similarity algorithm have been used?
@
Hii guys.. I madhe form in containing 2 inputs 1 text 2 image In angular.. Can anyone help me to create an api using django rest to accepte those inputs and save in database.. !
Anonymous
How to make Django category model and rest framework ?
Anonymous
Explain better It makes no sense
https://stackoverflow.com/questions/70616828/django-treebeard-with-django-rest-framework
Дауран
Hey guys I have a question about Django , is it mandatory to study python before switching on Django
Дауран
I would like to study Django from the beginning of the year , because I am keen on web development especially backend
Дауран
Yes, because is not switching, Django is python
I know very well that Django is Pythons framework
Charly
I know very well that Django is Pythons framework
then your question makes no sense
Дауран
then your question makes no sense
I meant that should I learn basic knowledge from Python before studying Django ?
Charly
I meant that should I learn basic knowledge from Python before studying Django ?
Of course, how do you expect to use python if you don't know the basics?
Alanominator
I meant that should I learn basic knowledge from Python before studying Django ?
Django is a framework written on python. Then you should. Can you learn library about medicine in Spanish, if you don't know .. Spanish? (Without google in closed room)
R@kesh
For django database mandatory or not
R@kesh
Broo
Charly
For django database mandatory or not
Not mandatory, but the you may don;t want to use dajngo if you are not going to use database
R@kesh
Without database I can't use django
cj
Without database I can't use django
you can... but it's like you want to eat pizza without toppings ¯\_(ツ)_/¯
R@kesh
Which one is best
cj
Which one is best
one of what? and best for what? pizza? the pepperoni and bacon one
R@kesh
Which database is best for python
Charly
Without database I can't use django
Why do you want to use django if most of the features rely on a database?
R@kesh
Any other course for django
Doragonsureiyā
Any other course for django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
cj
I can't understand
almost all the Django's features rely on having a Database working... so, why don't you want to use a Database but still use Django? What do you really want to do?
R@kesh
almost all the Django's features rely on having a Database working... so, why don't you want to use a Database but still use Django? What do you really want to do?
I want to do fullstack python I finished python, html, css, bootstrap now django is continue any other required for fullstacj
Valentin
Without database I can't use django
django comes with sqlite by default, but if you need a database, you can start practicing there
Jerome
I can't understand
You’re pretty fine with SQLlite. Take the advantage of its integration in Django to learn more exciting things than SQL db particularities if you start at coding.