Akhil
Can we make a template for website using django ??
ᴹᵃᵏˢᵃᵗ
Ayush
Can we make a template for website using django ??
U can only integrate html, bootstrap in django
Anonymous
U can only integrate html, bootstrap in django
how i connect bootstrap form with database ? please help
cj
U can only integrate html, bootstrap in django
what? only bootstrap? of course not, you can use whatever library/framework you want for the front-end
cj
how i connect bootstrap form with database ? please help
you don't do that, you can't connect bootstrap with databases, that's why DJANGO exist
Anonymous
so how i connect
Doragonsureiyā
so how i connect
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
cj
so how i connect
well... you have to learn Django then ☝️🏻☝️🏻☝️🏻☝️🏻
Anonymous
Can we use request body for delete request in drf?
Raad
Hey guys, Now I’m using integer to present the account types in the system. For example: 1 = Admin 2 = Employee 3 = Client My question is: Is there any better implementation that help to secure and hide this kind of integer sequence implementation?
Bunty chhatri wala..
Anonymous
World Quant University is a non profit working to bridge the knowledge gap. It runs 2 modules absolutely free of cost. Search the group by name 'dailycodingpractice'
Abdullah
hi guys.i have a question:how i redirect user other url without page reloading?(ajax or other)
Anonymous
Hello guys. Could you please help me on how to make a full text search in django. I want to make a search like the stackoverflows search on my QandA site.
cruelwarrior
Hello guys. Could you please help me on how to make a full text search in django. I want to make a search like the stackoverflows search on my QandA site.
Check https://django-haystack.readthedocs.io/en/master/tutorial.html and https://haystacksearch.org/ as one option.
محمد دلشاد
hi guys.i have a question:how i redirect user other url without page reloading?(ajax or other)
i don't think you can redirect to whole other page without reloading
محمد دلشاد
unless you use some front end framewok such as React, Angular, vue etc
Abdullah
but i see this more websites(exm:discourse forums)
Salisu
Hello all, How can I perform calculations based on model fields in Django 3.1? Such price * quantity or even more complex. Thanks in advance
cj
https://docs.djangoproject.com/en/3.0/ref/models/expressions/
cj
use property methods in model
and make more queries inside the properties when you reach each row? I don't think that's a good idea
Salisu
thank you all. Will try it
Blyncnov
Am trying to do login authentication using existing bootstrap template from static page
Blyncnov
Nice to hear that
Sorry I needed help on how to to do, I forgot to include while copying
Mirco
Sorry I needed help on how to to do, I forgot to include while copying
Start studying how Django works and you will know auth is already included into it and you need a couple of lines of code
Mirco
No need to post it again
Mirco
I know about the inbuilt bootstrap
Bootstrap is not built-in
Frank Florentino 🇵🇪
what is the best way to treat error in produccion
Frank Florentino 🇵🇪
?
Frank Florentino 🇵🇪
I mean .
Frank Florentino 🇵🇪
may be a logg file o send a email
Frank Florentino 🇵🇪
what libraries i can used?
Anonymous
Hey guys How to do?! I had a question for one of my friends that I wish you can help us to find the best... What is the best language or framework for starting the back-end and work easily and professionally with server side??? Plaese say with logical reasons not luckily Thanks guys
cj
may be a logg file o send a email
you can associate your logs to a web service like Sentry, that way you can see the logs without accessing the server
Anonymous
However, would you prefer Django to others?
Anonymous
Yes
Can you tell some reasons for that? For example fast system or something else??!
cj
because it's Django, nothing compares to it 🤷🏻‍♂
Anonymous
Can you tell some reasons for that? For example fast system or something else??!
Most of the stuff need comes with framework.. whether you use it or not..you don't have to worry about some basic stuff.. it'll be done for you or it's simple as adding a param.. I think it's good for big projects.. using django for small projects is not a good idea.
cj
also it's OWASP compliant, so you have some protection against some common attacks from the beginning and you don't have to worry about them —if you use Django the proper way—
cj
Please !!!!
read what the Exception value says, Google it, debug your code
Pirah
read what the Exception value says, Google it, debug your code
I do this ,but I can't find the solution.
Pirah
why? what have you tried?
I tried to read the exception value and put it on google I couldn't find a concrete answer.
Pirah
what about debugging your code?
when i debugged it gave me an error in urls.py whatever i fix it always display its error.
Brandon
when i debugged it gave me an error in urls.py whatever i fix it always display its error.
Did you check the type value of the element in the Form Connection, according to your database
Pirah
No, i will check now
abcde
In the above code I didn't get this line : cleaned_data=super(AddProfileForm, self).clean()
abcde
I know if we just write super().clean() it will call clean method in parent class , but what is super(AddProfileForm, self)
Anonymous
I need some urgent help (i m on the clock)
Anonymous
suspiciousfileoperations
Anonymous
The joined path is located outside the base path component
Anonymous
STATIC_URL = ‘static’
Anonymous
MEDIA_URL=‘/MEDIA_FILES’
Anonymous
MEDIA_ROOT= os.path.join(BASE_DIR,’filesbase’)
Anonymous
couldn’t find the seeming problem on the engine
Anonymous
im gonna keep looking (just keepin the doors for answer open anyway possible)
Anonymous
Getting ModuleNotFounf : no module named '_squlite3' error after installing Django.. KINDLY Help
Pankaj
class Plan(BaseModel): # Plans for insurance name = models.CharField(max_length = 50) # Name of insurance cover sum_insured = models.DecimalField(max_digits=10, decimal_places=3) description = models.TextField()
Doragonsureiyā
class Plan(BaseModel): # Plans for insurance name = models.CharField(max_length = 50) # Name of insurance cover sum_insured = models.DecimalField(max_digits=10, decimal_places=3) description = models.TextField()
Please use Markdown to style your text/code: - Use a single back-tick: ` at the beginning and end of your code for single line code: print("hello world") - Triple back-tick ``` at the beginning and end of your code for multiple lines code: def hello(name): print(f"hello {name}") - Two asterisks * at the beginning and end to make words bold: hello - Two underscores __ at the beginning and end to make words italic: world