Re: Add search to my blog app

2020-05-20 Thread sachin chaurasiya
>From which book you have had learnt django On Wed, May 20, 2020, 9:46 PM sunday honesty wrote: > Hello everyone! I have got a question. I am a Django beginner trying to > build my first web app after completing a book. > > I made an app I called developers forum where authenticated users can po

RE: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
”:    search_query = request.POST[“search”]    //Suppose search query is blog_1   If search_query[-1] == 1:   return httpResponse(“blog1”)    return //default index.html   Sent from Mail for Windows 10 From: Ali AhammadSent: 20 May 2020 22:32To: Django usersSubject: Add search to my blog

RE: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
_javascript_ it that needs to be done dynamically otherwise redirect() Sent from Mail for Windows 10 From: Ali AhammadSent: 20 May 2020 22:32To: Django usersSubject: Add search to my blog app At first you should make search search template where you should put what and how you want display Then

Add search to my blog app

2020-05-20 Thread Ali Ahammad
At first you should make search search template where you should put what and how you want display Then you should write a views.py function where you should use query=request.GET[‘queer’] Object_list=Post.objects.filter(title__icontains=query) *same for the content If you want and then you shoul

RE: Re: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
Then you have a better option to learn react(a frontend framework for _javascript_). You cannot do dynamic stuff on the web without using _javascript_. Sent from Mail for Windows 10 From: sunday honestySent: 20 May 2020 21:57To: django-users@googlegroups.comSubject: Re: Add search to my blog app I

Re: Add search to my blog app

2020-05-20 Thread sunday honesty
2020 21:45 > *To: *Django users > *Subject: *Add search to my blog app > > > > Hello everyone! I have got a question. I am a Django beginner trying to > build my first web app after completing a book. > > > > I made an app I called developers forum where authenticate

RE: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
the #_javascript_.  Sent from Mail for Windows 10 From: sunday honestySent: 20 May 2020 21:45To: Django usersSubject: Add search to my blog app Hello everyone! I have got a question. I am a Django beginner trying to build my first web app after completing a book. I made an app I called developers

Add search to my blog app

2020-05-20 Thread sunday honesty
Hello everyone! I have got a question. I am a Django beginner trying to build my first web app after completing a book. I made an app I called developers forum where authenticated users can post something like question or code achievement and another can comment in form of answer. I want to add

Good stand alone blog app for django 3.0 >

2020-03-14 Thread Danny Blaker
Hi! I've been testing a few good blog apps (Pinax, Pupet/Wagtail - https://github.com/APSL/puput) etc - how ever they are currently only available for django 2. Does any one know a similar blog app that is django 3 compatible? I have been looking to no avail. Many Thanks! -- You rec

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Robert CR
is it because i have forgotten to import CommentForm? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Robert CR
then a new error pops up: [image: Udklip3.PNG] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread daniel main
Use id instead of pk On Oct 12, 2018 10:34, "Glen D souza" wrote: > > *def add_comment(request, slug):* > *post = get_object_or_404(Post, slug=slug)* > *if request.method == 'POST':* > *form = CommentForm(request.POST)* > *if form.is_valid():* > *comment = for

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Glen D souza
*def add_comment(request, slug):* *post = get_object_or_404(Post, slug=slug)* *if request.method == 'POST':* *form = CommentForm(request.POST)* *if form.is_valid():* *comment = form.save(commit=False)* *comment.post = post* *comment.save()

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Robert CR
If i do that i get another error: [image: Udklip2.PNG] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to thi

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Glen D souza
try renaming path('post//comment/', views.add_comment, name= 'add-comment'), to path('post//comment/', views.add_comment, name='add-comment'), On Fri, 12 Oct 2018 at 12:36, Robert CR wrote: > i fixed the error, thanks. But there is already a new one when i try to > add a comment. D: > > [image:

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-12 Thread Robert CR
i fixed the error, thanks. But there is already a new one when i try to add a comment. D: [image: Udklip.PNG] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to d

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread daniel main
Hello, Have you tried adding an app_name = 'your_app_name' in the URLs.py file? Thanks On Oct 12, 2018 09:36, "Glen D souza" wrote: > Hi, > > Try after name-spacing url patterns i.e > > app_name = 'blog' > > urlpatterns = [ > path('', PostListView.as_view(), name='blog-home'), > path('us

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Glen D souza
Hi, Try after name-spacing url patterns i.e app_name = 'blog' urlpatterns = [ path('', PostListView.as_view(), name='blog-home'), path('user//', UserProfileListView.as_view(), name= 'user-profile' ), path('user//posts/', UserPostListView.as_view(), name= 'user-posts'), path('user

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Manjunath
Try adding for action to your add_comment url then submit the form. I guess currently form is getting submitted in the same page. On Friday, October 12, 2018 at 12:00:03 PM UTC+5:30, Robert CR wrote: > > here is the template file. > > *add_comment.html* > > > > *{% extends "blog/base.html" %}{% l

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Robert CR
here is the template file. *add_comment.html* *{% extends "blog/base.html" %}{% load crispy_forms_tags %}{% block content %}{% csrf_token %} Comment {{ form|crispy }} Post Comment! {% endblock content %}* -- You r

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Manjunath
Please provide snapshot of your template file as well as project's urls.py file. On Friday, October 12, 2018 at 11:14:22 AM UTC+5:30, Robert CR wrote: > > I am making a blog app for my django website. Right now i'm making a > comment feature, but when i try to view a post and

Re: Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Robert CR
I think it has something to do with my urls.py and views.py *urls.py* from django.urls import path from .views import ( PostListView, PostDetailView, PostCreateView, PostUpdateView, PostDeleteView, UserPostListView, UserProfileListView, UserProfilePostListView ) fro

Blog app Error: NoReverseMatch at /post/14/

2018-10-11 Thread Robert CR
I am making a blog app for my django website. Right now i'm making a comment feature, but when i try to view a post and the posts comments i get an error. *The Error* [image: Udklip.PNG] -- You received this message because you are subscribed to the Google Groups "Django users&

Re: Django Blog app (Error): __str__ returned non-string (type User)

2018-10-11 Thread robertlls4480
thanks, that helped alot :D -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to djang

Django Blog app (Error): __str__ returned non-string (type User)

2018-10-11 Thread Ігор Магур
Sorry correct return self.author.username -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send

Django Blog app (Error): __str__ returned non-string (type User)

2018-10-11 Thread Ігор Магур
In class Comment in str method you need to user.username or something you want as string, now you are returning full user object. Ex def __str__(self): return user.username -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th

Django Blog app (Error): __str__ returned non-string (type User)

2018-10-11 Thread robertlls4480
I'm trying to make a blog website app and i am trying to make a comment feature. But when i try to add a comment with the admin page i get an error. The Error: models.py from django.db import models from django.utils import timezone from django.contrib.

Re: blog app

2014-01-11 Thread Mark Moss
Zinia is one of the best django based blog -- http://django-blog-zinnia.com/ -- - Mark *Django Framework Hosting . Kick start instantly!* -- You received this message because you are subscribed to the Google Groups "Django

Re: blog app

2014-01-11 Thread Leotis buchanan
Hi Everybody, can anybody recommend a blog app that I can use in a django site i am currently developing. Regards Leotis Buchanan Co-Founder Exterbox On Sat, Jan 11, 2014 at 12:55 PM, Avraham Serour wrote: > If I understood you correctly you are saying that when you make changes

Re: Anyone tried a pre-existing django blog app like wordpress to add to their site?

2013-12-03 Thread Mario Gudelj
I like Zinnia. It's a gun. I had issues understanding some of the code as it's all built in CBVs, but once you get your head around it it rocks. Has everything a blog should have and documentation is great. Even a WP import tool is in it! https://github.com/Fantomas42/django-blog-zinnia On 4 Dec

Re: Anyone tried a pre-existing django blog app like wordpress to add to their site?

2013-12-03 Thread Tom Lockhart
On 2013-12-03, at 7:02 PM, Creed Mangrum wrote: > Just wondering if there is any general feelings or inclinations to any good > ones out there. Thanks! I've been using Mezzanine as the underpinnings for a bigger site. I can recommend it highly. Not familiar with others though.

Anyone tried a pre-existing django blog app like wordpress to add to their site?

2013-12-03 Thread Creed Mangrum
Just wondering if there is any general feelings or inclinations to any good ones out there. Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users

Re: Practical Django Projects blog app admin not showing entries with draft status

2010-02-03 Thread 邓超
for further > editing. When I log in with psql I can see the draft in the database > but the admin doesn't show the draft in the entries, however the draft > is listed in the Tagged Items table. HOw do I get the draft to show up > in the entries, do I need to add something to the admin

Practical Django Projects blog app admin not showing entries with draft status

2010-02-03 Thread neridaj
aft is listed in the Tagged Items table. HOw do I get the draft to show up in the entries, do I need to add something to the admin.py file for the blog app? class EntryAdmin(admin.ModelAdmin): prepopulated_fields = {'slug': ('title',)} Thanks for any help, Jason -- Y

Implementing RSS Feeding to Blog App -

2008-02-03 Thread goober
Hello, I am trying to implement a Django RSS based on the Definitive Guide to Django, but I seem to be having trouble viewing the RSS output in my browser. My codes are: # urls.py urls.py (located in the apps directory) from django.conf.urls.defaults import * snip from django_apps.blog.fee

Re: calendar for blog app?

2006-06-11 Thread yml
Hello, Have you already looked at the date_based archive: - 'django.views.generic.date_based.archive_month' You can find the documentation there: http://www.djangoproject.com/documentation/generic_views/#django-views-generic-date-based-archive-month I hope that will help you --~--~-~-

calendar for blog app?

2006-06-10 Thread Steven Armstrong
Hi all Is anybody aware of a template tag or something that renders a calendar for a blogs sidebar? One of those things that shows the month of the blog entry you're currently looking at and the days are links to entries that where made on other days? cheers Steven --~--~-~--~~-