Re: existing database connectivity

2016-12-21 Thread Rasika
I am followed the steps as I am getting in tutorials when I run the command : python manage.py migrate this is giving me following error from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: DLL load failed: The specified module could not be found. During handlin

Re: django-report-tools replacement for Django 1.7 and higher

2016-12-21 Thread C. Kirby
Quick followup, it looks like 3 of the 4 forks from HEAD on master have fixed it, take a look at the network graph https://github.com/evanbrumley/django-report-tools/network On Thursday, December 22, 2016 at 9:49:44 AM UTC+2, C. Kirby wrote: > > It looks like github user daegun has the most up t

Re: django-report-tools replacement for Django 1.7 and higher

2016-12-21 Thread C. Kirby
It looks like github user daegun has the most up to date fork of it, but you will have to pip install from github instead of pypi https://github.com/daegun/django-report-tools/commit/521cefa61103166c5aea40586549d95aadbc561d On Wednesday, December 21, 2016 at 4:06:05 PM UTC+2, scha...@gmail.com

Re: Erroneous links in my URLs - all load the home page -- not a 404 or other error.page

2016-12-21 Thread Vijay Khemlani
show your urls.py On Wed, Dec 21, 2016 at 10:43 PM, NoviceSortOf wrote: > > URLs not defined in my urls.py all show my home page and not a 404 missing > page error. > > For instance > > www.mysite.com > Naturally shows my home page. > > www.mysite.com/catalogs > Shows the downloadable catalogs >

Erroneous links in my URLs - all load the home page -- not a 404 or other error.page

2016-12-21 Thread NoviceSortOf
URLs not defined in my urls.py all show my home page and not a 404 missing page error. For instance www.mysite.com Naturally shows my home page. www.mysite.com/catalogs Shows the downloadable catalogs then anything goes. www.mysite.com/thisisanonsenselink or www.mysite.com/AnythingTyped

Re: Maybe a bug, about app and view function name collision

2016-12-21 Thread Xin Belter
It works, I didn't change anything(maybe somewhere I didn't realize)... interesting... 在 2016年12月19日星期一 UTC+8下午8:17:09,Xin Belter写道: > > Here is the strange thing I just met: > > My project's name is *showMetDDA*, and has only one app named *showTable*, > in my app's vimes.py file, I have a vie

Re: How can I access field values generically?

2016-12-21 Thread Mike Dewhirst
On 21/12/2016 9:10 PM, C. Kirby wrote: Mike, I've done a lot of work with Model meta, and I'm pretty sure I can give you at least the bones of a solution, but I can't really get my head around the problem. Could you post a set of related models and what you would expect the result to look like?

Re: Unique app name error problem when building a Wagtail multisite solution

2016-12-21 Thread 'Matthias Brück' via Django users
is this really just not possible? What I found is this: you can't have two apps with the same name, even if they have different > fully qualified module paths https://groups.google.com/forum/#!msg/django-users/AMYLfQo6Ba4/Y-57B0i7qy4J How would you guys handle this? -- You received this mes

Re: Django user shows 2 users rows sql table auth_user has over 3000 rows

2016-12-21 Thread NoviceSortOf
To answer my own question on doing a psql dump of the data base found the 2 records in books_user auth_user --now that the custom user has been entered on models. Should of known from the line -- import from books.models import user On Wednesday, December 21, 2016 at 9:46:20 PM UTC+1, Novic

Django user shows 2 users rows sql table auth_user has over 3000 rows

2016-12-21 Thread NoviceSortOf
>From the command line in Python >>from books.models import user >>custs = list(rusers.objects.all()) >>print custs >>[, ] >From SQL SELECT * FROM auth_user WHERE username LIKE '%TEST%' -- None found. auth_user has been vacuumed, and reindexed during the tests. - Where and in what schema are

Re: validate_email returns None for any or format

2016-12-21 Thread NoviceSortOf
Thanks, I can build logic on that. On Tuesday, December 20, 2016 at 2:28:48 PM UTC+1, NoviceSortOf wrote: > > > Why does validate_email return None irregardless of what is typed in? > > >>> from django.core.validators import validate_email > >>> x = validators.validate_email('t...@example.com') >

RE: Model _meta API

2016-12-21 Thread Matthew Pava
Thank you so much for that clarification! -- 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

Re: Model _meta API

2016-12-21 Thread James Bennett
I'd be against it. At work I deal with one codebase that's Django and one that's Flask/SQLAlchemy, so I've run into the issue of not being able to name a column 'metadata' in a SQLAlchemy ORM model (that name is reserved for SQLAlchemy's internal use, but not underscore-prefixed), and been frustra

Model _meta API

2016-12-21 Thread Matthew Pava
Since the standardization of the Model _meta API and making it public, I was wondering if Django plans on removing the underscore in _meta in the future? Just curious. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: GeoDjango: Filter by Area

2016-12-21 Thread Tim Graham
If you don't get an answer here, you can also ask on the geodjango list: https://groups.google.com/forum/#!forum/geodjango. On Monday, December 19, 2016 at 6:59:43 AM UTC-5, Sanjay Bhangar wrote: > > Hey folks, > > I am trying to use the 'Area' function documented here: > https://docs.djangoproj

django-report-tools replacement for Django 1.7 and higher

2016-12-21 Thread schaf . mh
Hi all, I took over a very old Django project and I like to upgrade it to the actual version. I will do a step wise upgrade and from Django 1.6 to 1.7 I have the problem, that the used django-report-tools is no longer supported/compatible because the django.utils.encoding.StrAndUnicode has been

Unique app name error problem when building a Wagtail multisite solution

2016-12-21 Thread 'Matthias Brück' via Django users
Hi all, I want to build a Wagtail multisite solution and I'm running into problems with unique application labels. I would like to have the following project structure: project | |--app1 ||--core ||--pages |... |--app2 ||--core ||--pages |... Even whe

Re: validate_email returns None for any or format

2016-12-21 Thread Michal Petrucha
On Tue, Dec 20, 2016 at 05:28:48AM -0800, NoviceSortOf wrote: > > Why does validate_email return None irregardless of what is typed in? > > >>> from django.core.validators import validate_email > >>> x = validators.validate_email('t...@example.com') > >>> print x > None > >>> > > Shouldn't it be

Re: How can I access field values generically?

2016-12-21 Thread C. Kirby
Mike, I've done a lot of work with Model meta, and I'm pretty sure I can give you at least the bones of a solution, but I can't really get my head around the problem. Could you post a set of related models and what you would expect the result to look like? On Wednesday, December 21, 2016 at 4