How can I implement Ajax pagination without side modules like endless-pagination

2014-10-06 Thread Artie
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:

Re: my mysite/templates/admin/base_site.html is ignored (tutorial unclear?)

2014-11-17 Thread Artie
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

Seeking for advise on usage MySQL together with MongoDB

2014-12-05 Thread 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 of electrical components with about 10 millions of products. Now all of it stored in awful structure of tables in MySQL. Products st

Re: Seeking for advise on usage MySQL together with MongoDB

2014-12-10 Thread Artie
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

Re: Seeking for advise on usage MySQL together with MongoDB

2014-12-10 Thread Artie
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

Determine content-type of page in middleware class Django

2014-12-12 Thread Artie
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

Re: How to configure django and MySql with python properly ??

2014-12-25 Thread Artie
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

How properly render pages with video

2014-12-25 Thread Artie
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