I need to make ajax pagination in my project and not allowed to use side
modules like dajax or endless-pagination.
Code in my views.py is following
def listing(request):
news_list = NewPost.objects.all()
paginator = Paginator(news_list, 2)
page = request.GET.get('page')
try:
Are you sure about correct path to your templates in views?
Show your view code
понедельник, 17 ноября 2014 г., 5:04:53 UTC+2 пользователь Andreas Ka
написал:
>
> thanks for your answer.
>
> yes, I just tried that. Same result.
> By now, I have understood much more about the templates.
> But sti
Good day, Community,
I'm looking for advise on MySQL & MongoDB usage so please let me take your
time to describe the situation.
I came to work on e-commerce shop of electrical components with about 10
millions of products. Now all of it stored in awful structure of tables in
MySQL. Products st
n and Postgres rocks.
пятница, 5 декабря 2014 г., 14:56:57 UTC+2 пользователь Artie написал:
>
> Good day, Community,
>
> I'm looking for advise on MySQL & MongoDB usage so please let me take your
> time to describe the situation.
>
> I came to work on e-commerce shop
Can you please advise why actually you hate Django ORM and what should be
considered instead of it?
суббота, 6 декабря 2014 г., 23:18:06 UTC+2 пользователь Cal Leeming написал:
>
> Hi Artie,
>
> First, I would strongly recommend reading some of the work by David Mytton
> at Ser
Well, I have middleware class which is required to determine content-type
of rendered page and if it is 'txt/html', then do some action. I've started
just from seeing what content-types do I have on page and here is first
problem I faced:
class StatsMiddleware(object):
def process_view(s
Hello, you have to provide some information, like traceback of errors and
your settings.
Also consider using PostgreSQL instead of MySQL. It is much more better and
natural to Django
среда, 24 декабря 2014 г., 21:54:14 UTC+2 пользователь Osman Goni Nahid
написал:
>
> I'm beginner in django , c
The project is online English video lessons. I have a 'classroom' - html
page with HTML5 video player in center of it. Videos being stored in media
folder on same level as project.
What I want is to render video from media folder to 'classroom' page using
Django.
How am I supposed to do th
8 matches
Mail list logo