Re: django query, order results such that th128 > th99

2015-09-27 Thread Gergely Polonkai
Hello, what you want to achieve is called "natural order sorting" which is not built into any common SQL implementation I know. You have to do it manually from code, or, if you have to do pagination, add a sorting column that is numeric (and indexed). Best, Gergely On 28 Sep 2015 08:42, "gintare"

django query, order results such that th128 > th99

2015-09-27 Thread gintare
Is it possible to order the query result strings in such a way that th128 string would be first comparing to th99. The query results contains 128 items in format: "th"+number. For instance, th1, th2, ...th80, ..th99, th100, th128. Than i order results, they go in the following order, th1, th10,th

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hey guys, I am happy to announce that it finally works. The problem was that there was an additional 'qq' in my settings.py file on line 44.(no idea how it got there) I have posted my entire input / output here for viewing and discussion ... CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd mysite

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> On Sep 27, 2015, at 06:04, Cai Gengyang wrote: > > This is my entire settings.py file > > … I’m not seeing the problem, but it is certainly there somewhere. Try removing pieces of the settings file until you can isolate the syntax problem which is likely on or before line 45. Copy the orig

how to design app structure

2015-09-27 Thread Sadaf Noor
Hello, My question is regarding design pattern of django app. what is the philosophy behind apps in django? when should we decide to split our web app into many django apps? If you could share you relevant experiences, it would be helpful. -- Md. Sadaf Noor (@sadaf2605

garantir acesso a usuários somente para seus dados

2015-09-27 Thread Carlos Andre
Hi, im with a question, want permission to user in only your data. With doc i trying but only access to all dates. Can help? thanks. ps.: if can help to add new user, use the functions to this. I use django 1.3 version and is necessari. thaks! -- You received this message because you are subscrib

Re: I want to make todo List

2015-09-27 Thread Mario R. Osorio
Ram, are you doing this for homework?? On Saturday, September 26, 2015 at 6:46:56 AM UTC-4, Ram Lakhan Agarwal wrote: > > I want step by step procedure to make todolist > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Looking for advise on exporting data from multiple models

2015-09-27 Thread David Spector
Hi, I'm just getting back into Django development after about 4 yrs with some other technologies and looking for some advise on what should be a pretty straight forward task. I have developed a django app this will be the curation point for a very large number of data feeds; these data feeds

Looking for advise/examples on working with multiple models & export to JSON

2015-09-27 Thread David Spector
Hi, Am getting back into Django after a few years away working with a mess of other platforms and looking for some advise on how to accomplish what should be a pretty straight-forward task. I'm working on a django app that will be the curation point for a large number of data feeds. These fee

Re: E-commerce

2015-09-27 Thread Ezequiel Bertti
http://www.getlfs.com/ On Fri, Sep 25, 2015 at 8:59 PM, Paul Savignano wrote: > Thanks luisza14 ! > > On Thursday, September 24, 2015 at 1:30:46 PM UTC-7, luisza14 wrote: >> >> >> http://oscarcommerce.com/ >> >> or https://www.djangopackages.com/grids/g/ecommerce/ >> >> 2015-09-24 13:42 GMT-06:0

Re: http://pastebin.com/RWt1mp7F

2015-09-27 Thread Cai Gengyang
Feeling tired, going to take a break and go to sleep. Guess I must be missing something ... if anybody can spot the error let me know. Just message here or shoot me an email at gengyang...@gmail.com. Thanks a lot ... On Monday, September 28, 2015 at 2:23:03 AM UTC+8, John wrote: > > Are you sur

Re: http://pastebin.com/RWt1mp7F

2015-09-27 Thread John
Are you sure that this settings file is the one that is being read? Put something ugly at the beginning of it that will raise a syntax error earlier just to check. Also check whether you have any *.pyc files left that for some reason might be being read instead of the .py. You can safely delete all

Re: http://pastebin.com/RWt1mp7F

2015-09-27 Thread Shawn Milochik
Try running ./manage.py shell You often get a better traceback. I don't see anything wrong with the beginning of the file you posted. However, you do have dirname twice, so one is just wasted. On Sep 27, 2015 13:50, "Cai Gengyang" wrote: > http://pastebin.com/RWt1mp7F --- If anybody can find any

http://pastebin.com/RWt1mp7F

2015-09-27 Thread Cai Gengyang
http://pastebin.com/RWt1mp7F --- If anybody can find any error with this settings.py file, let me know ! Looked through it and can't find any mistakes. The error message I got was that there is an error on or before line 45 (like a missing parentheses) , but can't seem to spot anything wrong ,

SynTaxError: invalid syntax

2015-09-27 Thread Cai Gengyang
This is the message I keep getting when I tried to run $ python manage.py migrate File "/Users/CaiGengYang/mysite/mysite/settings.py", line 45 'django.middleware.csrf.CsrfViewMiddleware', ^ SyntaxError: invalid syntax Below is my entire

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
This is my entire settings.py file """ Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.8.4. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see http

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Gergely Polonkai
Hello, that message is clear: line 45 in your settings.py has a syntax error. That line, however, seem OK, so I guess the previous one is that; maybe a comma is missing. Best, Gergely On 27 Sep 2015 14:26, "Cai Gengyang" wrote: > Hi Tom, > > Following your latest instructions , I have posted my

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> On Sep 27, 2015, at 05:26, Cai Gengyang wrote: > > Hi Tom, > > Following your latest instructions , I have posted my input and output > results here. Still getting an error message though it is a different one > this time ( a traceback error ) Oh, much better :) You are now seeing a typo

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hi Tom, Following your latest instructions , I have posted my input and output results here. Still getting an error message though it is a different one this time ( a traceback error ) CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd mysite folder CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ ls man

Re: NoReverseMatch error in django 1.8

2015-09-27 Thread Gergely Polonkai
Hello, the bookp route requires a user and a book_id parameter. Unless you supply that, your {% url %} tag won't match. Best, Gergely On 27 Sep 2015 12:49, "hossein" wrote: > this is my views and url.py > as long as use tag in my template show error > > url > > urlpatterns = [ > url(r'^boo

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> On Sep 27, 2015, at 04:39, Cai Gengyang wrote: > > Hi Tom, > So I click on Finder ---> Go ---> Home ---> 'Weiqi' folder ---> mysite folder > ---> manage.py file. (using a Mac OS X Yosemite Version 10.10.2) > This puts me in the same directory as the manage.py file. > Then I key in the command

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hi Tom, So I click on Finder ---> Go ---> Home ---> 'Weiqi' folder ---> mysite folder ---> manage.py file. (using a Mac OS X Yosemite Version 10.10.2) This puts me in the same directory as the manage.py file. Then I key in the command : $ python manage.py migrate, but I still get the same er

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> … > However, when I try to run the following command : $ python manage.py migrate > to create the tables in the database, > CaiGengYangs-MacBook-Pro:Weiqi CaiGengYang$ python manage.py migrate > input > I get the following error message : > /Library/Frameworks/Python.framework/Versions/2.7

NoReverseMatch error in django 1.8

2015-09-27 Thread hossein
this is my views and url.py as long as use tag in my template show error url urlpatterns = [ url(r'^bookee/$', views.index, name='index'), url(r'^bookee/user/(?P[a-z0-9-._@+]\w+)/$', views.uprofile, name='userprofile'), url(r'^bookee/user/(?P[a-z0-9-._@+]\w+)/book/(?P\d)/$', views.

Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hello all ! So I am going through the (Database setup) chapter of this tutorial (https://docs.djangoproject.com/en/1.8/intro/tutorial01/) --- Its the section right after the first chapter on "Creating a project" I opened up mysite/settings.py as per the instructions on the Django tutorial.