Anonymous
use this
sagir
Is it mandatory to known about bootstrap for crispy forms.?
sagir
So then how can I work on crispy forn.?
sagir
*form
Sheshadri
https://django-crispy-forms.readthedocs.io/en/latest/filters.html#using-crispy-tag-because-it-rocks
Anonymous
Hi everyone, I have been puzzling over this problem (https://stackoverflow.com/questions/60671241/need-to-set-current-username-in-author-comment-section) for a long time, need your help!
Mirco
Hi everyone, I have been puzzling over this problem (https://stackoverflow.com/questions/60671241/need-to-set-current-username-in-author-comment-section) for a long time, need your help!
User model has a username, why you wanna use it into the Comment model ? It's better to have something like "author" But anyway, what you wanna achieve is just put request.user.username And obviously set some permissions into the view that create the comment object
Pruthvi
Iam new to django any site to do small projects...
Pruthvi
How to expertise it
Doragonsureiyā
Iam new to django any site to do small projects...
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
sagir
Why we use Class Meta in forms.py.?
Mirco
Why we use Class Meta in forms.py.?
To handle fields to includes for example if it's a ModelForm
Dhruva
create_user_account() missing 2 required positional arguments: 'email' and 'password' how to resolve this error
Dhruva
def create_user_account(email, password, first_name="",last_name="", extra_fields): user = get_user_model().objects.create_user(email=email, password=password, first_name=first_name,last_name=last_name, extra_fields) return user
Dhruva
but have mentioned
✙Yaroslav
https://github.com/jazzband/django-smart-selects
Is there a solution to my problem here?
Saran
guys
Saran
i dont know where to start my django journey
Saran
help me
Saran
i just learned python now....
ℕo ℕame
i dont know where to start my django journey
Google "django docs"
ℕo ℕame
Or django tutorial
Anonymous
https://machinelearning-intro-implementation.blogspot.com/2020/03/linear-regression-with-one-varible-part.html
Sheshadri
Is there a solution to my problem here?
Yes, what you are saying is you need "chained select" where If I select a drop down of field schedule I need to populate another field additionalschedule which is related to schedule and that is what that module does.
Doragonsureiyā
i dont know where to start my django journey
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Akash
Can anyone help me to host my Django project on live aerver
Akash
What you need , define live server?
I wish that host that project with nginx or any other webserver
Akash
I am currently using in built aerver to run website
Anonymous
Hello. See I have learnt basics of django(polling app tutorial) then I made some changes in static & template and hosted it online with heroku using heroku cli. Now, I want to build a web scrapper but I want it to scrape the information once a day automatically without user giving the command. Like automatically. Can it be done using heroku?
Gil
I wish that host that project with nginx or any other webserver
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04
sagir
i dont know where to start my django journey
Read the introduction, installation then you will understand what to do ahed
utkarsh
Plz help
utkarsh
I have a question
utkarsh
Do i have to create views.py in project?
Gil
Do i have to create views.py in project?
Yes, if you want views. MVC
Anonymous
I have an issue I have been battling since Saturday evening I create a view and all the necessary html files and import my views in my urls.py file but my view in url path is underlined, u tried it with a diff project and it worked perfectly but the same is not working on my current project. Using pycharm 2017 and Django 2.2
sagir
Do i have to create views.py in project?
No man. You have to create app in which you will get views.py file. To create app: python manage.py startapp appname
sagir
Check your app there will be views.py file
utkarsh
But bro when i attched my template then it shows index. Html doesnt exist
sagir
So what you want
Anonymous
Yes it has
It’s there you can create your views
utkarsh
utkarsh
I have sent u pkc
utkarsh
Pic
Way
Hello chat. I have a task. There is a table of products, the product has a category. And a category can have its own properties per product group. And for each category, the quantity and type of these properties may be different. How should I do this?
Dexter
Guys how to create customized registration forms in with extra fields
Dexter
Any tutorials would be great
Dexter
Thank you
477
Hello guys.... am having an issue trying to load crispy form after installing... my settings.py was updated Crispy_forms was added to installed app and I added the default templates CRISPY_TEMPLATES_PACK = ‘bootstrap3’ I updated the tag {% load crispy_forms_tags %} and rendered crispy {{% form|crispy %}}. Whenever I run my server I have no issues but whenever I try loading my app on local server it shows me the error below
477
Syntax error invalid syntax
R
Try to use 'bootstrap4'
477
Okay let me try thanks 🙏🏽
477
Still same syntax error
Anonymous
Whats the message?
DORIAN GRAY
get error:"attempt to write a readonly database" when try to enter admin panel. Have write permissions on db.sqlite3 file for all users. What's wrong?
477
Whats the message?
Syntax error at / Invalid syntax (Layout.py, line 334)
Anonymous
Hmmm
Anonymous
So that is the problem..
Anonymous
Layout.py is file made by you I suppose
477
nope its not.... its a default file in crispy
Anonymous
Not sure then.. but I recomend you to follow this tutorial: https://simpleisbetterthancomplex.com/tutorial/2018/08/13/how-to-use-bootstrap-4-forms-with-django.html
477
okay thanks
Mick
I'm New in Django Framework! Anyone Suggest easy to understand Django Tutorial resources Please !!!
Unknown
How to create a redirect code for django?
Doragonsureiyā
I'm New in Django Framework! Anyone Suggest easy to understand Django Tutorial resources Please !!!
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
­
DmtrTg, [16.03.20 14:50] Hello. Tell me how to do in Django, when validating the form, so that username is equal to the cropped email to @
­
def subscription(request): form = ProfileForm(request.POST or None) if request.method == "POST" and form.is_valid(): form.save() username = ???? raw_password = form.cleaned_data.get('password1') user = authenticate(password=raw_password) login(request, user) return redirect('home')