Re: Newbie question about Django and Python versions.

2014-09-08 Thread Andrey Consalter
Thanks Russ, that clarifies a lot! Nice to see guys like you helping newcomers! -- 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

Has anyone had issues with the server in 1.7 running dog slow or not at all?

2014-09-08 Thread Michael A. Martin
Has anyone had issues with the server in 1.7 running dog slow or not at all? I was using a beta version of 1.7 and the server ran on top of jython with no issue. The only thing that was failing was migrations. Now I do a jython manage.py runserver 8080 and the browser seems to not want to

Re: Newbie question about Django and Python versions.

2014-09-08 Thread Russell Keith-Magee
Hi Andrey, On Tue, Sep 9, 2014 at 4:30 AM, Andrey Consalter wrote: > Hi there, > > I've been studying programming with Python 2.7 and Django 1.6, and a few > days ago Django 1.7 was release and with it, the new tutorial that I had > just started. > What you guys would

Django migrations directly import custom fields?

2014-09-08 Thread Greg
Hi all, I'm moving over to the new migrations, and I've noticed whenever I create a migration involving a custom model field, it imports that field at the top of the migration. The south docs were always quite firm about not doing this sort of thing, in case the code changed in the future. Is

Re: Newbie question about Django and Python versions.

2014-09-08 Thread Michael A. Martin
Is anyone else trying out 1.7? I do a jython manage.py runserver 8080 and then it seems to want to render but isn't. > On Sep 8, 2014, at 1:30 PM, Andrey Consalter wrote: > > Hi there, > > I've been studying programming with Python 2.7 and Django 1.6, and a few days >

Newbie question about Django and Python versions.

2014-09-08 Thread Andrey Consalter
Hi there, I've been studying programming with Python 2.7 and Django 1.6, and a few days ago Django 1.7 was release and with it, the new tutorial that I had just started. What you guys would recommend? Keep working with my current environment or update it? How this updates work? How "deep" are

Re: Suggestions about building new ecommerce website

2014-09-08 Thread Luca Corti
https://www.djangopackages.com/grids/g/ecommerce/ Il 2014-09-08 15:16 Shreyans Jain ha scritto: I want some suggestions on building a big eCommerce website . I have a good experience of making website in asp.net [1] ,asp.net [1] Ajax and sql server 2008 . Now I am thinking about moving from

Re: Suggestions about building new ecommerce website

2014-09-08 Thread Ezequiel Bertti
Another one LFS: http://www.getlfs.com/ On Mon, Sep 8, 2014 at 5:03 PM, Collin Anderson wrote: > If you're looking for reusable apps to help you out there's two ecommerce > ones: > > satchmo: https://bitbucket.org/chris1610/satchmo/wiki/Home > > oscar:

Re: Suggestions about building new ecommerce website

2014-09-08 Thread Collin Anderson
If you're looking for reusable apps to help you out there's two ecommerce ones: satchmo: https://bitbucket.org/chris1610/satchmo/wiki/Home oscar: http://tangentlabs.github.io/django-oscar/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Query parameters in the URL, with REST Framework

2014-09-08 Thread Elio Gerson Clímaco Herrera
Hi, everybody. I, stared using *REST Framework* few days ago, but I, can't find how create a customized url with parameter, in Django this kind of url is written like this. url(r'^author/(?P\d+)/books/$', BooksList.as_view(), name = 'books'), for this

Re: django-jython: I am getting an error when I run the migrate command on Jython-Django 1.7

2014-09-08 Thread Michael Martin
I ran sqlmigrate because I understand that it creates the sql calls which are to be ran against the database via the database connecter. I am not a DBA, but my first opinion is that the sql calls don't look right to me. Anybody out there know SQL for Postgresql really well?

Re: settings.py

2014-09-08 Thread ngangsia akumbo
i am trying to host build an app to host it on heroku On Monday, September 8, 2014 6:21:49 PM UTC+1, Andrew Pinkham wrote: > > Hi Ngangsia, > > On Sep 8, 2014, at 12:16 PM, ngangsia akumbo > wrote: > > when i run the > > django-admin.py startproject this is the settings

Re: settings.py

2014-09-08 Thread Andrew Pinkham
Hi Ngangsia, On Sep 8, 2014, at 12:16 PM, ngangsia akumbo wrote: > when i run the > django-admin.py startproject this is the settings file i have I've glanced through the file. It looks fine to me, but I may have missed something. > Please i need some help here dont

settings.py

2014-09-08 Thread ngangsia akumbo
when i run the django-admin.py startproject this is the settings file i have """ Django settings for bphotel project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see

Re: Suggestions about building new ecommerce website

2014-09-08 Thread Sithembewena Lloyd Dube
As you are a one-man team and would like to minimise time to market and cost, I highly recommend Django. Fantastic community, fairly straight forward to learn framework. Rails has more magic than I find useful when learning and Django's admin rocks. On Mon, Sep 8, 2014 at 6:04 PM, Charly Román

Simple task. Get request.META values listed on a page via template

2014-09-08 Thread Артём Мутерко
I need to list all values from request.META in Django using template. I've done it without template like this (code from my views.py) def display_meta(request): values = request.META.items() values.sort() html = [] for k, v in values: html.append(‘%s%s’ % (k, v)) return

Re: Suggestions about building new ecommerce website

2014-09-08 Thread Charly Román
If you ask in a django users list you might have answers recommending Django. 2014-09-08 8:16 GMT-05:00 Shreyans Jain : > I want some suggestions on building a big eCommerce website . I > have a good experience of making website in asp.net ,asp.net Ajax and > sql server

Re: Does Django detect changes in models Meta ?

2014-09-08 Thread Malik Rumi
>>Maybe Migrations is just really buggy? I am using PostgreSQL as the backend. I added a column with a default value and then did makemigrations then migrate. It doesn't work. I get a very long error<< h.. I hope not. I'm using Postgres too. Looks like I'll have to add a new field to my

Suggestions about building new ecommerce website

2014-09-08 Thread Shreyans Jain
I want some suggestions on building a big eCommerce website . I have a good experience of making website in asp.net ,asp.net Ajax and sql server 2008 . Now I am thinking about moving from Microsoft (because of cost) . Please help me choose between php(plain),php with mvc framework,django (not

Re: Django admin list sort error

2014-09-08 Thread Derek
Colin Good suggestion, but I already have a stack of "extra" fields like this (for special needs e.g. calculated or reformatted fields). However, doing this for normal fields that Should Just Work seems like a real hack. Surely the answer is that the underlying SQL is not being generated

Re: Does Django detect changes in models Meta ?

2014-09-08 Thread Michael A. Martin
Maybe Migrations is just really buggy? I am using PostgreSQL as the backend. I added a column with a default value and then did makemigrations then migrate. It doesn't work. I get a very long error. > On Sep 7, 2014, at 8:54 AM, Malik Rumi wrote: > > Django 1.7rc2

Re: Does Django detect changes in models Meta ?

2014-09-08 Thread Michael A. Martin
Migrations in 1.7 is the replacement for south. > On Sep 2, 2014, at 1:44 PM, Norman Bird wrote: > > OK, I found out that in order to change the schema of the tables one has to > install and run a migration tool. I used south. just install south and check > out their

Python 3 and MySQL

2014-09-08 Thread Collin Anderson
If anyone has any experience using MySQL with Python 3, we're discussing on django-development what to officially support. https://groups.google.com/d/topic/django-developers/n-TI8mBcegE/discussion -- You received this message because you are subscribed to the Google Groups "Django users"

Re: deploying django on heroku

2014-09-08 Thread ngangsia akumbo
i still dont get it bro On Sunday, September 7, 2014 10:04:51 PM UTC+1, Kevin Ndung'u wrote: > > As it says, just run those commands, setting your username and email, to > set your git identity (Username and Email address) which is required for > commits. > > On Saturday, September 6, 2014

Re: Updating Django project from 1.4 (if not older) to 1.7

2014-09-08 Thread Derek
Maybe a long shot... but if the project was designed to run in a virtualenv, then there may be a requirements.txt file which will describe what is needed to run it, including the Django version. On Saturday, 6 September 2014 22:30:35 UTC+2, Abdulla Al-Khenji wrote: > > Hello all, > > I have

Re: WHERE TO PLACE BUSINESS LOGIC IN DJANGOS' MTV

2014-09-08 Thread Derek
There are many more wise heads than me ... so I can only report on what many others have said. "Fat Models, Helper Modules, Thin Views, Stupid Templates" i.e Put more logic into anything but views and templates; Template tags and filters should contain the minimum logic possible

django-jython: I am getting an error when I run the migrate command on Jython-Django 1.7

2014-09-08 Thread Pitchblack
I hoping that you can help me out. I currently have Django1.7 running on windows7/Java7/Jython2.7/Postgresql9.3/postgresql-9.3-1102.jdbc41/django_jython-1.7.0b2-py2.7. egg I learned today that on Django 1.7 has makemigrations and migrate commands built in. But even so when I try to apply

Re: Save data from form

2014-09-08 Thread Eddilbert Macharia
Hello, Your welcome, its not that difficult to wrap head around django though, just patience is required Regards, Eddilbert Macharia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

How to express a seemingly straightforward upate in the ORM?

2014-09-08 Thread Benjamin Scherrey
I've got an application that needs to frequently update a boolean value (ChannelItem.channel_stocks) against a temporary table that gets created and lives just long enough for this transaction. The table is simply a list of alpha-num skus and created like this: cursor.execute("create temporary