R
https://stackoverflow.com/questions/63341730/django-main-category
R
anyone can help me to solve this problem?
Anonymous
i have a question, how do you pass form data in a step by step process..say the form data is in step 2 and i want that data to reflect in the last step(step 4) before submitting the data..any ideas?
Anonymous
I'm try to replace sqlite with MySQL and I keep getting all types of errors even though I thought I was moving foward
Anonymous
Anonymous
And how can I integrate terminal into my django site?
Vaibhav
Anyone learning through corey's video?
Vaibhav
Corey Schaefer
ɱσσɳ
Eng. Mohamed
Hi All ,
i am combining using DetailView and FormMixin to create comment form in post detail view
every thing is working fine
but why for in net rendering in template
i searched for several hours with no results
here is my code
https://pastebin.com/kvWuEUrz
Thanks in-advance
Anonymous
Anonymous
Anyone looking for a coding partner to collaborate with kindly know that am available
Anonymous
Hi
I want to send data from admin.py to JQUERY
I have table UseProfile every user has rôle and grade
And I have table ticket
I want to limit form field by grade
And do other vérification in JQUERY.
Anonymous
I use render form change function in admin
Anonymous
hey, is anyone can help me to solve this problem?
NoReverseMatch at /
Reverse for 'post-detail' with arguments '('',)' not found. 1 pattern(s) tried: ['post\\/(?P<slug>[-a-zA-Z0-9_]+)\\/$']
Anonymous
my code is:
Anonymous
@login_required
def post_detail(request, slug):
template_name = 'blog/post_detail.html'
post = get_object_or_404(Post, slug=slug)
comments = post.comments.filter(active=True)
new_comment = None
# Comment posted
if request.method == 'POST':
comment_form = CommentForm(request.POST)
if comment_form.is_valid():
# Create Comment object but don't save to database yet
new_comment = comment_form.save(commit=False)
# Assign the current post to the comment
new_comment.post = post
#username
new_comment.username = request.user
# Save the comment to the database
new_comment.save()
else:
comment_form = CommentForm()
context = {
'posts': post,
'comments': comments,
'new_comment': new_comment,
'comment_form': comment_form
}
return render(request, template_name, context)
Anonymous
urls
urlpatterns = [
#Blog section
path("", PostListView.as_view(), name='blog-home'),
path("user/<str:username>", UserPostListView.as_view(), name='user-posts'),
path('post/<slug:slug>/', views.post_detail, name='post-detail'),
path("posts/new/", PostCreateView.as_view(), name='post-create'),
path("post/<slug:slug>/update/", PostUpdateView.as_view(), name='post-update'),
path("post/<slug:slug>/delete/", PostDeleteView.as_view(), name='post-delete'),
path("about/", views.about, name="blog-about"),
path("<category>/", views.blog_category, name="blog_category"),
]
kancharla
I have a website where I used urllib module
If I deploy my site will it work fine
Anonymous
Hi everyone,
I am learning Django
Anonymous
Please help me i am getting errors
Anonymous
ValueError: The field admin.LogEntry.user was declared with a lazy reference to 'profiles_api.userprofile', but app 'profiles_api' doesn't provide model 'userprofile'.
The field authtoken.Token.user was declared with a lazy reference to 'profiles_api.userprofile', but app 'profiles_api' doesn't provide model 'userprofile'
Anonymous
Is anyone aware of this?
Anonymous
Anonymous
Ok
Anonymous
Anonymous
any help?
isa
I try to implement "Django-Filter" on my project. Below link include my code. The code returns all fields initially but return no record for any filtering option after initialization. Queryset return empty query set . There is no python error too. Can anyone spare time for me ?
https://hastebin.com/iqinomexok.bash
Anonymous
myii
I'm using the django-survey third-party app but I need to adjust the string representation for the Question model because it's way too long (especially since I'm using it with django-reversion): https://github.com/Pierre-Sassoulas/django-survey/blob/master/survey/models/question.py#L382-L387. What's the right way to make this adjustment? Hacking the app directly works but obviously isn't appropriate.
Anonymous
isa
I think everyone is busy today 😊
Anonymous
Moeed
Shubham
Hi everyone,
I am stuck with a problem while building a restraunt reservation app.
I am using TimeField() to store time for the booking of reservation.
Now I want to customise my form in a manner that the time which is already selected with a booked reservation is not available anymore.
Can anyone suggest how to proceed on this?
Any leads will be appreciated.
Thanks
DD
DD
Shubham
Yeah it's a useful approach
Shubham
But this validation would happen only after user has selected already reserved date and time
Shubham
I am looking for a way to customize TimeField widget
Дмитрий
look for the way how i can get from db over django via telegram bot . question is how should i make auth for bot to get data for define user from django api?
Sweetie
is there a way to get my .po files translated without sharing the whole file to user.
Something like a web UI where I upload .po and user only get to see the translation strings and fill a form to translate.
Anonymous
Django, myModel.objects.all()
returing null in template, but when i tried to run it on terminal by print(myModel.objects.all()) it prints everything
Shubham
Anonymous
i tried
Anonymous
{% for i in imagesdata %}
<p> {{ i.name }} </p>
{% endfor %}
Anonymous
def allimages(request):
imagesdata = images.objects.all()
return render(request, "home.html", {"imagesdata": imagesdata})
Anonymous
Anonymous
Rajan
Can anyone help me development of a site through django
Rajan
I have website templates
Anonymous
how to use plaid in django,
DD
Suraj
Roman
Hi guys
Roman
I have a unique set defined for model. I want to do update or create in DRF but validator does not let me mean coz the unique error, how to handle it?
Doragonsureiyā
how to use plaid in django,
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box write down the same words you asked here
Step 4: Read the firsts results
thala
If anyone has done project with Django
Doragonsureiyā
Anurag
Need one guidance:-
I am learning Durango on my own via going through book . But for front-end I need to write my own HTML.
I came to know there are 3 front-end frameworks
1.angular 2.react 3.vue
Which one do you suggest for me to learn. And help me if you think my understanding is incorrect
Anurag
Oops typo Django
Doragonsureiyā
-_-
Hi there, may i ask if there's anyone already had an idea about query objects inside manytomanyfield.
here's the question on github link: https://gist.github.com/jacobian/827937#gistcomment-2673375
Siddharth
Siddharth
through api
Sarang
Hi ,m using django for my project ...bt i want to distribute my project to multiple user so how can i give ... should i convert into exe or what(source code should be hidden )
Anonymous
Make it online
Anonymous
Anonymous
If they are far away, or host it on your local network if they are near you
Anurag
the best one is React bro
Thanks , one more request, is there any tutorial / book you may suggest having django + react combination
SNIR
Hi guys, i upload my app to heruko and i am using RDS PosgresSQL.
my site is very heavy loading some pages with queries inside them.
i have install newrelic plugin
and i can see the request:
Postgres studentform_event select ,avg calls 450.
psycopg2:connect avg calls 1
why the select is to long ? does django not optimize for queries?
Kd
anyone did razorpay payment gateway integration?
Deep
i am making 2 projects on Django , i am beginner in django and python, but what i see nobody is hiring a beginner here in Jaipur . i am even ready for the internship
Jai
I want to pass username from view to react frontend, can someone help me with the way to do it?
Deep
.
.
And sql Optimization
Ariel
I'm trying to run call_command from a view. Can anyone help me with that?
Maverick
Try to check before adding the data if it's the same