maroong
X
init() takes 1 positional argument but 2 were given
X
class PostList(generic.ListView):
queryset = Post.objects.all().order_by('-created_on')
template_name = 'index.html'
class GalleryList(generic.DetailView):
queryset = Post.objects.all().order_by('-created_on')
template_name = 'gallery.html'
X
is the queryset causing the problem?
A.M
This may be a dumb question, but is html,css and javascript pre requisite for django?
Mirco
Mirco
Mirco
If you wanna build a full stack web app otherwise if another team works on frontend isn't a very requisite but it's always good you have strong fundamentals
blank_
Hello, I am beginner in django.
I want to get tomorrow by using default date in django model . Any solution of my problem please help
Mirco
X
Mirco
Anyway for example if you wanna have tomorrow, you can just use date.today() + timedelta(days=1)
Mirco
Or by using timezone from django.utils
Anonymous
Hwy guys ,does django-saleor support bitcoin payment
Mirco
Ghorz
blank_
Mirco
Doragonsureiyā
Thank you
You're welcome! 😊
Anonymous
hw can create a chat-bot in django site.
Mirco
🎈Denis
George
maroong
Vahe
Hello guys. Does anybody know how can I make my server autopull from git when I push changes to remote master. Please can you suggest me what topics can I read to know more about this?
Muslim
Mirco
Muslim
X
Generic detail view blah must be called with either an object pk or a slug in the URLconf
X
the urlpatterns is set right
Mirco
Share urls and view
X
am using class based views
Mirco
Share code
X
class PostGallery(generic.DetailView):
model = Post
template_name = 'gallery.html'
X
urlpatterns = [
path('', views.PostList.as_view(), name='home'),
path('gallery/', views.PostGallery.as_view(), name='gallery_link'),
path('<slug:slug>/', views.PostDetail.as_view(), name='post_detail'),
]
Mirco
Mirco
just add gallery/<int:pk>/
Mirco
Or <slug:title> if your Post model has title
X
I did and am getting 404 error
Mirco
Into your PostList show posts with a link to the PostGallery by passing the Post pk
X
can i dm u
Mirco
No
X
ok
Mirco
Just study better , it's one of the most basic things of Django
Luis
what is slug?
Gaurav
Why does django-admin runserver naot working?
Bheeshma
Becz it is django manage.py runserver
Bheeshma
Gaurav
Bheeshma
Bheeshma
Алексей
Hello everyone
How to pass smth to kwargs in get request in class-based view?
class MyView(View):
def get(self, request, *args, **kwargs):
print(kwargs)
Anonymous
Hi! There is some docs for learn Django?
Anonymous
Bheeshma
Bheeshma
I mean list, tuple, Dictionary, loops, if else, functions, class, string
Muflone
Alex
actually last update was in March 2020 ^
Anonymous
Hey guys can I use thesame method of integrating stripe in django ecommerce into django-saleor
Anonymous
Anonymous
I want to add an add-on system such that user can extend features after purchasing an add-on. How can I do that
Rajesh
Anyone know how to send csrf token to django from angular
Rajesh
Getting 403 on put request
Mirco
Mirco
https://docs.djangoproject.com/en/3.0/ref/csrf/
Mirco
Check the AJAX part
Bradypodion
Rajesh
Thanks
Ihsan
hi what should i learn and what keyword should i use to search for ways to auto update a value in db? Like i have rent system where after 2 hours of rent, the rent status will change to finished or completed
Ihsan
all is done in the background