Re: no module name error

2013-05-18 Thread Bill Freeman
Since I'm unfamiliar with the book, I don't know about the 'created_at' field, which must be specific to the book's app design. Try commenting out the reference to 'created_at' in admin.py and see if you get further. If so, then try to be sure that you are following the book in order, and that

Re: no module name erro

2013-05-18 Thread Kakar Arunachal Service
Ok i got d solution for ProductAdmin not in the form problem. But thanks again! -- 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

Re: no module name error

2013-05-18 Thread Kakar Arunachal Service
And by the way thanks for being patience with me! -- 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: no module name error

2013-05-18 Thread Kakar Arunachal Service
Ok i removed ecomstore from, from ecomstore.catalog.models import Product, Category to from catalog.models import Product, Category And i think it worked fine. But now again it gives an error: ImproperlyConfigured at/catalog - 'ProductAdmin.exclude' refers to field 'created_at' that is missing

Re: no module name error

2013-05-18 Thread Bill Freeman
Ok. If catalog is in the upper directory, take the leading "ecomstore." off of the import statement. Also remove it from the entry in INSTALLED_APPS. Alternatively, move the catalog directory (will all of its contents), into the lower directory. If you are at a unix or mac os shell prompt the

Re: no module name error

2013-05-18 Thread Bill Freeman
Can you run: python manage.py shell ? If you already have an error, try again with the 'ecomstore.catalog', line commented out in settings.py If shell runs without an error and gives you a python prompt, try the following, in sequence until you get an error: >>> import ecomstore >>>

Trailing zeros in DecimalField

2013-05-18 Thread Pedro J. Aramburu
I've been reviewing the code of *models.DecimalField* and * forms.DecimalField* because trailing zeros after the decimal point are being removed in my forms. I didn't find anything suggesting that it's done there, instead they are handled properly according to my needs. Although the proper

Re: no module name error

2013-05-18 Thread kakararunachalservice
Its in the upper directory, i.e. where the manage.py is. Sent from Samsung tablet Bill Freeman wrote: Yes, but of which directory is the catalog directory a sub-directory?  The upper ecomstore (which contains manage.py) or the lower ecomstore (which contains

Re: no module name error

2013-05-18 Thread Bill Freeman
Yes, but of which directory is the catalog directory a sub-directory? The upper ecomstore (which contains manage.py) or the lower ecomstore (which contains settings.py)? Or is it somewhere else entirely? On Sat, May 18, 2013 at 6:59 PM, Kakar Arunachal Service <

Re: no module name error

2013-05-18 Thread Kakar Arunachal Service
The directory is as follows: ecomstore --manage.py --ecomstore __init__.py settings.py urls.py wsgi.py --preview __init__.py models.py views.py test.py --templates --tags navigation.html base.html catalog.html index.html --static css.css --catalog __init__.py

Re: no module name error

2013-05-18 Thread Kakar Arunachal Service
ecomstore is the project name. And within it, it has another ecomstore, which has the __init__.py, settings.py, urls.py and wsgi.py. And yes catalog too has the __init__.py file in it, as it was created by the startapp command. The error says, import error: no module named catalog.models in

Re: Help converting from mysql to postgres

2013-05-18 Thread frocco
I am getting IntegrityError: duplicate key value violates unique constraint "catalog_pricing_pkey" DETAIL: Key (id)=(8) already exists. catalog_pricing_id_seq Start Value 8 Last Value 1 Increment 1 There are 8 records in table. id 1 through 8 If I reset sequence, last value is set to 1 if

Re: no module name error

2013-05-18 Thread Bill Freeman
Does the ecomstore directory (as well as the catalog dirction) also have an __init__.py file in it? And is the ecomstore directory in the same directory as manage.py ? Or is ecomstore the project name, rather than part of an app with extra levels? (Still needs an __init__.py) And if so, and

Re: no module name error

2013-05-18 Thread Kakar Arunachal Service
Oh..m sorry. I mistyped, it was not django.ecomstore.catalog.models, but just, ecomstore.catalog.models import Category, Product. N in the catalog dir, it has __init__.py file, so should have done the problem. N m using sqlite3 so i dnt need adapters too. Pls help. -- You received this message

Re: no module name error

2013-05-18 Thread Bill Freeman
Unless you actually created your stuff inside your installation of Django (or under some directory named site-packages or dist-packages), which is not recommended, it is unlikely that the place from which you import Category and Products will be named beginning with "django.". The book may be

no module name error

2013-05-18 Thread Kakar Arunachal Service
I'm practicing from a book Begining django e-commerce and m stuck in one place. My project name is ecomstore, and in it i have two app, one is preview and the other is catalog. In my preview app, there's just html in the templates dir, and thats not the problem, because the result was fine when i

no module name.models

2013-05-18 Thread Kakar Arunachal Service
I'm practicing from a book Begining django e-commerce and m stuck in one place. My project name is ecomstore, and in it i have two app, one is preview and the other is catalog. In my preview app, there's just html in the templates dir, and thats not the problem, because the result was fine when i

Help converting from mysql to postgres

2013-05-18 Thread frocco
Hello Here are my steps. python manage.py dumpdata --database=legacy > data.json python manage.py loaddata data.json --database=default IntegrityError: Problem installing fixture 'data.json': Could not load accounts.UserProfile(pk=17): duplicate key value violates unique constraint

Re: Django in the Mac App Store with BitNami

2013-05-18 Thread Artem Zinoviev
sorry, but why you use apache? one-click deployment in local computer? or in heroku? Can i use createproject from template? why You don`t like old way by - mkvirtualenv spam && pip install django && django-admin.py startproject ??

Re: OperationalError: (1040, 'Too many connections')

2013-05-18 Thread frocco
I have been looking for an easy way to convert, but nothing works for me. I tried dumpdata, loaddata, but get duplicate key, when I look at the file, I see no duplicates. I am open to suggestions on converting. Thanks On Saturday, May 18, 2013 12:51:28 PM UTC-4, Artem Zinoviev wrote: > > use

Re: how to create google app for login in django project?

2013-05-18 Thread Artem Zinoviev
Hi Avnesh, you need google API consolefor creating app. docs . After you get your secret key use django-social-auth, or if you need login user only -use loginza

Re: Wrong formatting while using Tabular Inlines in Django admin

2013-05-18 Thread Artem Zinoviev
this can help? - http://www.codingnot.es/bootstrap-your-django-admin-in-3-minutes/ суббота, 18 мая 2013 г., 3:34:38 UTC+3 пользователь Nikos Delibaltadakis написал: > > I use Django 1.5.1 out of the box in a virtual environment in my Mac. I > just created an app with two models, so the one can

Re: Wrong formatting while using Tabular Inlines in Django admin

2013-05-18 Thread Artem Zinoviev
you see this in safari only or chrome do it exactly? суббота, 18 мая 2013 г., 3:34:38 UTC+3 пользователь Nikos Delibaltadakis написал: > > I use Django 1.5.1 out of the box in a virtual environment in my Mac. I > just created an app with two models, so the one can be used as inline in > the

Re: OperationalError: (1040, 'Too many connections')

2013-05-18 Thread Artem Zinoviev
use postgreSQL пятница, 17 мая 2013 г., 21:24:10 UTC+3 пользователь frocco написал: > > Hello, > > How can I resolve this in django 1.5? > > webfaction allows max 90 connections. > > Thanks > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: new to Django and building web applications. Advice with postgresql

2013-05-18 Thread Artem Zinoviev
this is the best way - https://django.2scoops.org/, and you can use something like this django template project for your task -h ttps://github.com/nigma/django-modern-template, it have memcached integrated AWS S3 for static files and so on...

Re: new to Django and building web applications. Advice with postgresql

2013-05-18 Thread Artem Zinoviev
you want learn django or postgres ? :-) postgres is cool stuff but it not requited... try this course - https://www.udemy.com/coding-for-entrepreneurs/, (in reddit you can find only

Re: Trees in Django

2013-05-18 Thread Artem Zinoviev
first parameter of render() function must be request... try do it like this: * return render(request, "tree.html", {'annotated_list':annotated_list}) * пятница, 17 мая 2013 г., 17:28:12 UTC+3 пользователь Cody Scott написал: > > I am categorizing models in a tree. The tree is created based on

Re: Template Inheritance doubt

2013-05-18 Thread Artem Zinoviev
if you have base.html and sidebar.html, base.html file just declare {% block sidebar %} section and sidebar.html make implementation of it, if you have SidebarView, then you load sidebar.html and this file take all from {% extends base.html %}. And if you try load base.html from SidebarView -

Re: Noob: How do I get this app to work :(

2013-05-18 Thread Artem Zinoviev
try use something like this - https://github.com/jtuz/django-events-calendar четверг, 16 мая 2013 г., 23:58:52 UTC+3 пользователь Todd Wickizer написал: > > Hello there, > > I just install Django yesterday. I am trying to take a calendar app and > edit it for my own means. Unfortunately I am a

Re: Noob: How do I get this app to work :(

2013-05-18 Thread Artem Zinoviev
hi Todd, you try using generic views and you can`t :-) read this article - https://docs.djangoproject.com/en/1.5/topics/class-based-views/, it can help you. best regards, пятница, 17 мая 2013 г., 20:08:31 UTC+3 пользователь Todd Wickizer написал: > > Thanks Tom. I tried copying and pasting the

Re: Template Inheritance doubt

2013-05-18 Thread Dow Street
It sounds like you are trying to have a template inherit code from multiple parents. One option is to stay with a simple inheritance hierarchy where each child template extends at most one parent template. If you want to use different code for different sub-sections of your project then just

Re: Guide for migrating to a custom user model?

2013-05-18 Thread Ponytech
On Thursday, April 18, 2013 6:34:02 AM UTC+2, Mike Dewhirst wrote: > > On 18/04/2013 12:33pm, Chris Streeter wrote: > > I found this [1] blog post to be interesting. I can't vouch for it's > > accuracy as I haven't migrated my own site yet, but it looks correct > > from reading it. > > > >

Template Inheritance doubt

2013-05-18 Thread Parin Porecha
Hi, I have just started to learn Django's template inheritance and I am stuck due to this problem - In my application's 'base.html', I have defined two blocks - {% block topbar %}{% endblock topbar %} and {% block sidebar %}{% endblock sidebar %} I have 2 templates - 'sidebar.html' which extends