Re: Announcement of GUI for Creating Models

2012-09-08 Thread Alec Taylor
Kurtis: That looks very interesting; just finished reading it. I wouldn't recommend this for Timothy though; it looks like something which will require a large team to develop. Maybe submit it as a project proposal to Canonical? Or post on Django-Dev [and here] to see if you can get a large +

Re: Django Tutorial

2012-09-08 Thread TJ Max
Please tell us what your urls.py is On Sat, Sep 8, 2012 at 6:02 PM, David Perez wrote: > Hi, > > I am new to Django, I am actually starting its tutorial. On part 2 it > enables the admin site, but I can't log in to it. The following error comes > up (see at the

Django Tutorial

2012-09-08 Thread David Perez
Hi, I am new to Django, I am actually starting its tutorial. On part 2 it enables the admin site, but I can't log in to it. The following error comes up (see at the bottom): If I remember correctly I did not get prompt to create a superuser when I wrote *python manage.py syncdb*, so I am not

Re: Announcement of GUI for Creating Models

2012-09-08 Thread TJ Max
Thank you for the feedback. I implemented the simple_mode suggestion. I'll use it personally so I don't have to click two checkboxes. I have simple ungrouped choices almost implemented. Unfortunately I'm getting weird undefined errors in my javascript. Most other field options are enabled now.

Re: Test driven development in Django framework

2012-09-08 Thread Steven Cummings
I think when people say "unit" tests to mean fully isolated tests, what they really mean is *whitebox* tests. You define the size of the unit under test and context runs from full isolation (whitebox test) to full integration/user-experience (blackbox test) -- Steven On Fri, Sep 7, 2012 at 7:39

Reverse for 'app_list' with arguments '()' and keyword arguments '{'app_label': ''}' not found.

2012-09-08 Thread vijay shanker
hi i have this model called charity ___ from django.db import models from settings import DEFAULT_CHARITY_NAME as deafult_charity_name class GetDefaultInstance(models.Manager): def get_default_instance(self): return

Re: is django too big for my use case?

2012-09-08 Thread Steven Elliott
I do not think your use case is too big for Django; you are only limited to your imagination and your knowledge of Python really. Check out Django Piston for RESTful APIs On Sat, Sep 8, 2012 at 4:05 PM, LuckySMack

Re: is django too big for my use case?

2012-09-08 Thread Kurtis Mullins
I have a project that will be making extensive use of Neo4j, along with other data systems. As much as I love Django, I don't think the marriage is there for what you want, yet. If you're not using Django's ORM, Template System, Administration System, etc... then there's really not much left of

Re: Announcement of GUI for Creating Models

2012-09-08 Thread Kurtis Mullins
You could take it a few steps farther and reproduce some work done by a doctor(now) I used to go to school with. http://knoesis.wright.edu/research/srl/projects/mobicloud/ On Sat, Sep 8, 2012 at 2:50 PM, Javier Guerra Giraldez wrote: > On Fri, Sep 7, 2012 at 9:42 PM, Timothy

Re: Seeing if a variable value is within a dictionary key value within a list of dictionaries

2012-09-08 Thread Tim Chase
On 09/08/12 14:45, Jason wrote: > thank you for your responses. I think, following your advice, I'll have to > abandon my attempts to handle this in the template, and sort this out in > the views instead. While it's *possible* to implement the logic in the template, it (1) is inefficient and

is django too big for my use case?

2012-09-08 Thread LuckySMack
I am currently starting work on a a project that is rest based. In order to use django as a rest based system I have to use another library on top of it. I've seen that there are a couple out there. But this system will be an advanced rest a pi that will allow me to talk to my database, and

Re: Seeing if a variable value is within a dictionary key value within a list of dictionaries

2012-09-08 Thread Jason
Hi guys, thank you for your responses. I think, following your advice, I'll have to abandon my attempts to handle this in the template, and sort this out in the views instead. Thanks again :) J On Saturday, September 8, 2012 7:40:39 PM UTC+1, Javier Guerra wrote: > > On Fri, Sep 7, 2012 at

Re: Understanding the use of Apache and nginix with Django

2012-09-08 Thread Javier Guerra Giraldez
On Sat, Sep 8, 2012 at 9:49 AM, Reginald Choudari wrote: > Django doesn't serve files itself; it leaves that job to whichever Web > server you choose. > We recommend using a separate Web server -- i.e., one that's not also > running Django -- for serving media. Here

Re: Announcement of GUI for Creating Models

2012-09-08 Thread Javier Guerra Giraldez
On Fri, Sep 7, 2012 at 9:42 PM, Timothy Clemans wrote: > I've developed a GUI for creating models, see > https://github.com/timothyclemans/django-admin-models-editor > > Would this be helpful for developers? Would it be useful for you? Should I > keep developing it?

Re: Virtualenv changes url reverse behaviour

2012-09-08 Thread Javier Guerra Giraldez
On Sat, Sep 8, 2012 at 5:06 AM, William Hart wrote: > Hey Ramiro, thanks for the reply... yes you are correct I haven't mentioned > the version of Django I have installed. I've experienced this on both 1.4.1 > and 1.5dev. I think I mentioned in the comments on SO that I've

Re: Development server won't work from a shared web host

2012-09-08 Thread Javier Guerra Giraldez
On Sat, Sep 8, 2012 at 12:55 AM, graeme wrote: > Why Mako? As a personal preference it is fine, but why general advice for > newbies? Many people are happy with Django templates - although I far prefer > Jinja which had the advantages without some of the more annoying >

Re: Seeing if a variable value is within a dictionary key value within a list of dictionaries

2012-09-08 Thread Javier Guerra Giraldez
On Fri, Sep 7, 2012 at 6:19 PM, Tim Chase wrote: > On 09/07/12 16:06, Jason Whatford wrote: >> P.s. Tim, my data structure isn't that malleable. It's >> essentially I query my appengine datastore, and that retrieves a >> list of the data models, each of which can

Reverse for 'app_list' with arguments '()' and keyword arguments '{'app_label': ''}' not found.

2012-09-08 Thread vijay shanker
hi i tried overriding change_form to add a extra button along side history button in django admin section.. on local machine it works fine but on server it gives me this error. I have no clear idea what went wrong and how to fix it . Environment: Request Method: GET Request URL:

Changing the text on the admin "change_list.html"

2012-09-08 Thread Derek
I need to alter the text that appears above every change list in my app: "Select *modelname* to change" However, I cannot see this text in the change_list.html file - whereabouts is this text kept, and can it be overridden? Thanks Derek -- You received this message because you are subscribed

Re: Understanding the use of Apache and nginix with Django

2012-09-08 Thread Psamathos
If you are using only Apache with mod_wsgi, you will also need to set up Aliases for your media directories (like css, images, or user-uploaded files). This is because mod_wsgi doesn't serve static files, it is only used to generate the dynamic pages of your site. It's perfectly possible to

Re: Understanding the use of Apache and nginix with Django

2012-09-08 Thread Phang Mulianto
Hi, The apache or whatever the webserver you choose, should only serving static files, not .py files . the / request to your webserver will be redirect to django process, whether it is uwsgi, or wsgi , or whatever service you choose to deploy. Django runs as application server actually. user

Understanding the use of Apache and nginix with Django

2012-09-08 Thread Reginald Choudari
Hello, I've just started working on deploying a Django hosted website on my VPS. Last night I finished configuring mod_wsgi with apache2.2 and had got the 'It works!' page running from my Django project. I read here ( https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/) the

Re: Announcement of GUI for Creating Models

2012-09-08 Thread Joni Bekenstein
This could be very useful for generating dynamic forms. You create the model and then just have some views that generate and process a ModelForm that uses the created model with this interface. Also having a "simple" mode for the client who will actually use this would be helpful. For example,

Re: Can't Syncdb

2012-09-08 Thread Steven Elliott
What's the error message you get specifically On Sep 8, 2012 7:31 AM, "Kollin" wrote: > I create a project. I create app by name "app" in the project. The app > that : > app > __init__.py > models > __init__.py > a.py > b.py > but I can't

Re: Can't Syncdb

2012-09-08 Thread Kelly Nicholes
Did you add the app name in settings.py under the INSTALLED_APPS list? On Friday, September 7, 2012 10:23:31 PM UTC-6, Kollin wrote: > > I create a project. I create app by name "app" in the project. The app > that : > app > __init__.py > models > __init__.py > a.py >

Can't Syncdb

2012-09-08 Thread Kollin
I create a project. I create app by name "app" in the project. The app that : app __init__.py models __init__.py a.py b.py but I can't syncdb the app. I use django 1.4. What error? THX -- You received this message because you are subscribed to the Google Groups

Re: how to use timezones for datetime fields that are foreign keys in admin interface

2012-09-08 Thread Melvyn Sopacua
On 3-9-2012 2:47, dalupus wrote: > datetime = models.DateTimeField(auto_now_add=True) > def __unicode__(self): > return unicode(self.datetime) > On the item list screen however the datetime is not formated and seems > to be in utc format The list display uses the unicode

Re: Virtualenv changes url reverse behaviour

2012-09-08 Thread William Hart
> > You've posted five time on StackOverflow and four times on this thread > and haven't provided that rather basic piece of information. > Hey Ramiro, thanks for the reply... yes you are correct I haven't mentioned the version of Django I have installed. I've experienced this on both 1.4.1