Re: flatpages not finding site_media

2009-11-11 Thread Daniel Roseman
On Nov 11, 7:50 am, neridaj wrote: > I'm trying to use some flatpages for static content and I don''t > understand why they keep failing to load media files. I have my > template_dirs defined, media_root and media_url - when used in > template does not resolve to media_root i.e., template contain

Re: wsgi config

2009-11-11 Thread knight
Hi, Thanks for the reply.It helps for the admin media. But my site_media (static files) still don't work. Do you have another idea what my problem is? Thanks, Arshavski Alexander. On Nov 11, 12:31 am, Angel Cruz wrote: > Maybe the backslash is a problem. > > Here is how my media alias looks li

Re: Display a view of a single record?

2009-11-11 Thread derek
Cool! Thanks Alex - that is exactly what I want. On Nov 10, 4:55 pm, Alex Robbins wrote: > Derek, > > If you want something that display data but doesn't allow you to edit > it, you should check out the databrowse[1] contrib app. You just > register a model with it (like the admin) and it gener

Aggregate many fields

2009-11-11 Thread Dids
Hi, I'm trying to get sum for all/most fields in a rather large class. I'd like to avoid having to list every single fields manually. I found this in a different thread : (http://groups.google.ie/group/ django-users/browse_thread/thread/fc58fbe409a6f098/1110c688e1af58d2? hl=en&lnk=gst&q=aggrega

better error handling in templatetags?

2009-11-11 Thread pihentagy
Hi all! I am not satisfied with the error handling inside custom template tags. To demonstrate it, I cooked a mini useless app, which can be downloaded here: What I miss from the error screen is the actual location of the error. http://cid-a93120a1b42a9e7f.skydrive.live.com/self.aspx/.Public/dj

form with loop over fields?

2009-11-11 Thread andreas schmid
hi , i need to create an input form with a input field for every month for lets say 10 years. so the form has 10*12 = 120 exact same input fields. is there a way to define the field only once or maybe define a year with 12 fields and loop over it to avoid having a huge model? thx --~--~---

Triggen after insert on auth_user, crash the add new user with this error: InternalError at /operators/ current transaction is aborted, commands ignored until end of transaction block

2009-11-11 Thread NMarcu
Hello all, I have a section for adding new user, on auth_user table (default django auth method), and work just fine. I added a trigger on that event, to add something in a new table and my app crashed. I got this error: InternalError at /operators/ current transaction is aborted, commands i

Re: form with loop over fields?

2009-11-11 Thread Ian Lewis
andraeas, You can define a choice field that takes a callable as it's choices. That way you could use the current year and loop over the subsequent years to create the list you need. Just return a two tuple that can be used as the choices for a normal field in your function. class LazyChoiceFiel

unbound method __unicode__() error in Admin page with ManyToMany

2009-11-11 Thread django_fo...@codechimp.net
I have a class, A, that has a ManyToMany reference to another class, B like so: class B(models.Model): name = models.CharField() def __unicode__(self) return self.name class A(models.Model): name = models.CharField() bees = models.ManyToManyFi

Using named groups from choices

2009-11-11 Thread Timbadu
I'm trying to use the named group from nested choices in my model as part of the url. I currently have: model.py class Project(models.Model): PROJECT_CHOICES = ( ('Residential', ( ('public', 'Public Houses'), ('private', 'Private Houses'), ('extensi

ModelForm usage

2009-11-11 Thread gerhard . oettl
Hello I am new to django and try to use the ModelForm paradigma, but can't get the point ;-(( My example: models.py: class Project(models.Model): id = models.AutoField(primary_key=True) deletetime = models.DateTimeField() name = models.CharField(max_length=50) beginDate =

User Inheritance and i18n

2009-11-11 Thread Bernardo
Hello guys! After following this tutorial (http://scottbarnham.com/blog/2008/08/21/ extending-the-django-user-model-with-inheritance/) to be able to extend the default user class of Django, the i18n module stopped working. I gave the new model that inherits from User the name CustomUser. When I tr

Re: A simple database project

2009-11-11 Thread Zeynel
In this document http://docs.djangoproject.com/en/dev/ref/contrib/admin/ ModelAdmin.search_fields is explained: "You can also perform a related lookup on a ForeignKey with the lookup API "follow" notation. search_fields = ['foreign_key__related_fieldname']" I tried search_fields = ['school__

OperationalError server closed the connection unexpectedly

2009-11-11 Thread Janusz Harkot
Request Method: GET Request URL:http://localhost/ Exception Type: OperationalError Exception Value: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. Have you ever get such an exception runnin

Re: ModelForm usage

2009-11-11 Thread Daniel Roseman
On Nov 11, 10:04 am, gerhard.oe...@ogersoft.at wrote: > Hello > > I am new to django and try to use the ModelForm paradigma, but can't get the > point ;-(( As the documentation says, the point of a modelform is firstly to validate input from a user and save it to the database, and secondly to dis

Re: unbound method __unicode__() error in Admin page with ManyToMany

2009-11-11 Thread Karen Tracey
On Wed, Nov 11, 2009 at 7:06 AM, django_fo...@codechimp.net < codech...@gmail.com> wrote: > > I have a class, A, that has a ManyToMany reference to another class, B > like so: > >class B(models.Model): >name = models.CharField() > >def __unicode__(self) >return self

Adding a second search box to admin panel?

2009-11-11 Thread Zeynel
Hello, I have almost what I wanted to achieve. At least enough for a demo. It works like this: Enter a law school, say "NYU" The search results show First, Initial, Last, School, Year Graduated Then I click the desired year in the Filter for "Year Graduated" and I can see all lawyers who grad

Re: form with loop over fields?

2009-11-11 Thread David De La Harpe Golden
andreas schmid wrote: > hi , > > i need to create an input form with a input field for every month for > lets say 10 years. > so the form has 10*12 = 120 exact same input fields. > Do you mean tabular sort of form? gross deductible 2009-11-11 [...] [...] 2009-11-10 [...] [...] so

Re: djangocon videos

2009-11-11 Thread Aljosa Mohorovic
On Nov 10, 11:23 pm, Vitaly Babiy wrote: > According to there twitter (http://twitter.com/djangocon/status/4680045261) > they should be up but who knows when. I understand that it's hard to find time to do all the work necessary to put videos online but it's sad that, otherwise excellent confere

django and xml databases

2009-11-11 Thread Martin Mueller
I'm interested in projects that have used Django with an xml database such as eXist or Berkeley. I'm aware of one project along those lines but would like to find out about others. It is easy to imagine projects that combine data some of which are more easily stored in XML and some in SQL. If the

Re: form with loop over fields?

2009-11-11 Thread andreas schmid
i would need something like: jan feb mar apr may 2007 [...] [...] [...] [...][...] 2008 [...] [...] [...] [...][...] 2008 [...] [...] [...] [...][...] i dont think a formset would be the right way to go in this case (but maybe im

Re: Imports, works from directory but not from file

2009-11-11 Thread Bill Freeman
I had another couple of thoughts. In the manage.py shell, try: from openid.yadis import xri xri The output will include from where it got xri. Make sure that it's coming from your lib directory, and not from some old system wide installation of openid. Instead of: from openid.as

Re: Imports, works from directory but not from file

2009-11-11 Thread andreas schmid
im experiencing the same problem. i started with a simple app and the modules.py was at the root of the app package, so everything was fine. now i extended the app and restructured the files in it by making a subfolder app/models and inside an __init__.py and the mymodel.py in the urls.py which i

Re: flatpages not finding site_media

2009-11-11 Thread neridaj
I have a symbolic link named site_media in my project directory. On Nov 11, 12:07 am, Daniel Roseman wrote: > On Nov 11, 7:50 am, neridaj wrote: > > > > > > > I'm trying to use some flatpages for static content and I don''t > > understand why they keep failing to load media files. I have my > >

Re: unbound method __unicode__() error in Admin page with ManyToMany

2009-11-11 Thread django_fo...@codechimp.net
I am sorry, it was up all night working on this, and I was tired, and honestly didn't want to piss anyone off or offend anyone. ...here is the actual code in question: Snippet from models.py: class DisneySpotType(models.Model): name = models.CharField(max_length=128, primary_key=True) d

Re: datetime problems with Django application

2009-11-11 Thread David De La Harpe Golden
BEC wrote: > Any idea on what is going on here? I'm particularly perplexed as to > why the admin page and my view are giving different times. > That does sound weird. What database are you using? Not an immediate help, but the sane way to handle timezones in django in my experience: (0) don'

Re: unbound method __unicode__() error in Admin page with ManyToMany

2009-11-11 Thread Karen Tracey
On Wed, Nov 11, 2009 at 12:06 PM, django_fo...@codechimp.net < codech...@gmail.com> wrote: > > I am sorry, it was up all night working on this, and I was tired, and > honestly didn't want to piss anyone off or offend anyone. > > I was not angry or offended, sorry if I gave that impression. I was

Re: A simple database project

2009-11-11 Thread pjrhar...@gmail.com
> I tried > > search_fields = ['school__lawyer'] > > but I get an error message when I did a search for last name of > lawyer: > > Related Field has invalid lookup: icontains You need something like: search_fields = ['school__lawyer_last'] to specify which field on the related 'lawyer' instance

Re: datetime problems with Django application

2009-11-11 Thread Brian Chapman
At this stage, we just have some small applications using SQLite. I've noticed that I am always getting UTC despie what I set with time_zone. By last night I'd accepted the idea of using UTC internally and started looking into pytz to faciliate interface conversion, so I think I'm on the same track

Re: Triggen after insert on auth_user, crash the add new user with this error: InternalError at /operators/ current transaction is aborted, commands ignored until end of transaction block

2009-11-11 Thread Михаил Лукин
Why don't you use Django signals [1] for this? [1] http://docs.djangoproject.com/en/dev/topics/signals/ 2009/11/11 NMarcu > > Hello all, > > I have a section for adding new user, on auth_user table (default > django auth method), and work just fine. I added a trigger on that > event, to add s

Re: flatpages not finding site_media

2009-11-11 Thread Daniel Roseman
On Nov 11, 3:48 pm, neridaj wrote: > On Nov 11, 12:07 am, Daniel Roseman wrote: > > > > Have you set anything up to serve media files? > I have a symbolic link named site_media in my project directory. How does that answer the question? What is serving the media files? http://docs.djangoproje

Re: form with loop over fields?

2009-11-11 Thread Nick Arnett
On Wed, Nov 11, 2009 at 6:48 AM, andreas schmid wrote: > > i would need something like: > > jan feb mar apr may > 2007 [...] [...] [...] [...][...] > 2008 [...] [...] [...] [...][...] > 2008 [...] [...] [...] [...][...] > > i dont think

Re: Imports, works from directory but not from file

2009-11-11 Thread Bill Freeman
Does your project root (I'm assuming that's the directory containing the sub directory "app") have an __init__.py file. Does the app directory? I'm assuming that the one you mention below is in app/models/ . All three are required, if what you have on your sys.path is just the project root. Do

Re: unbound method __unicode__() error in Admin page with ManyToMany

2009-11-11 Thread django_fo...@codechimp.net
I honestly dont know how that got in there. I probably copied/pasted it in there by mistake, but that was indeed the problem. Thanks! On Nov 11, 12:33 pm, Karen Tracey wrote: > On Wed, Nov 11, 2009 at 12:06 PM, django_fo...@codechimp.net < > > codech...@gmail.com> wrote: > > > I am sorry, it w

Re: flatpages not finding site_media

2009-11-11 Thread neridaj
sorry, I'm just trying to use the dev server and added that url: (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': '/Users/neridaj/django-templates/ neridaj/'}), the url for static_media is being appended to the flatpage i.e., Failed to load source for: htt

Re: render_to_response taking 50 seconds!

2009-11-11 Thread Carl Zmola
Did you isolate the problem yet? It could also be the query itself. You might have to add indexes into the database to get good results. How much time does the query take if you run it in naive SQL without the rendering? Low Kian Seong wrote: > Pretty much confirmed it's the rendering or pul

Re: flatpages not finding site_media

2009-11-11 Thread neridaj
I figured it out, thanks. On Nov 11, 12:00 pm, neridaj wrote: > sorry, I'm just trying to use the dev server and added that url: > >     (r'^site_media/(?P.*)$', 'django.views.static.serve', >             {'document_root': '/Users/neridaj/django-templates/ > neridaj/'}), > > the url for static_m

Re: tiny_mce TypeError

2009-11-11 Thread neridaj
I figured it out, thanks. On Nov 10, 8:50 pm, neridaj wrote: > I'm using 1.2 pre-alpha, I tried pasting that code in, again, but no > dice. > > On Nov 10, 8:06 pm, James Bennett wrote: > > > On Tue, Nov 10, 2009 at 9:47 PM, neridaj wrote: > > > I'm just following "Practical Django Projects" an

Re: A simple database project

2009-11-11 Thread Zeynel
Ok, I tried search_fields = ['school__lawyer_first'] and I get this error Cannot resolve keyword 'lawyer_first' into field. Choices are: id, lawyer, school In the variations that I tried only search_fields = ['school__school'] worked. I followed the tutorial and arranged lawyer names as a l

Re: Prevent brute-force password attacks?

2009-11-11 Thread Adam Seering
Hi, Jorge: Thanks for the link; that's close to what we want. It looks like it's not so good at blocking broadcasts: f4nt: Actually, convincing users to choose smarter usernames/passwords would not help us much: We run online registrations for large (in-person) event

Errors importing django.db outside of python manage.py shell

2009-11-11 Thread fborell
I'm trying to set up the Python environment for Django so that I could take advantage of the auto-complete features of Komodo. While solving the auto-complete, I was still unsuccessful in importing certain modules via Komodo or a normal python shell. I was successful in creating and searching thr

Using generic relations as an inline - not working

2009-11-11 Thread neridaj
I'm trying to add some model fields to another model for admin editing and can't seem to get it to work i.e., model doesn't show up in admin, inline or otherwise. project/app/admin.py from project.app.models import SearchKeyword from django.contrib.flatpages.models import FlatPage from django.co

Re: Making the case for Django (vs. Drupal)

2009-11-11 Thread shacker
I just wanted to thank everyone for their excellent contributions to this thread. Sorry I got side-tracked for a while. I've just put up a pretty complete draft of a post on this topic, written with decision makers (managers, supervisors) in mind. It's still probably somewhat technical for that gr

Re: datetime problems with Django application

2009-11-11 Thread Brian Neal
On Nov 10, 5:41 pm, BEC wrote: > I have a Django application running with mod_python on Apache. In > settings.py I have set TIME_ZONE="America/New_York". Within my > application I verify that os.environ['TZ'] is indeed set to this > value. Within my view.py I use datetime.datetime.now() to create

Re: how to create a faceted browser with Django

2009-11-11 Thread SeanB
Daniel: I greatly appreciate the suggestion: it seems like it might offer just what i'm looking for. But i'm having a bit of trouble getting things set up (the dreaded "no results" on my simple test case, which means i'm still missing something). Do you happen to have a pointer to a running site

Can I change the restriction on "username" without breaking anything?

2009-11-11 Thread Richard E. Cooke
My client wants to use e-mail addresses for user names. the contrib.auth application does not have a restriction in its model. But the form code has put a regex on the field that disallows the ampersand (@). What would be the easiest way to override that form field definition so its global? A

AssertionError: Response didn't redirect as expected: Response code was 200 (expected 302)

2009-11-11 Thread Eesti Mate
When I'm testing my form with assertRedirects I get the following error message: AssertionError: Response didn't redirect as expected: Response code was 200 (expected 302) Don't know what/when/where went wrong. It seems that I'm missing some crucial point(s). Thanks for your pointers & your

problems registering models in admin

2009-11-11 Thread neridaj
I'm working on a standalone app and when I try to add it to the admin index it does not show up using: from django.contrib import admin from blog.models import Category admin.site.register(Category) Thanks, J --~--~-~--~~~---~--~~ You received this message beca

Questions of multi-database queries

2009-11-11 Thread YoungKing
I want query the data from another database of real-time updates every day, there are multiple filter criteria, so write a number of complex sql statement looks very dirty. I intended to construct a lazy queryset like the django's ORM way , according to each condition do && or || filterin

Re: problems registering models in admin

2009-11-11 Thread Preston Holmes
Is the admin in your installed apps in settings.py? http://docs.djangoproject.com/en/1.1/intro/tutorial02/#activate-the-admin-site Add "django.contrib.admin" to your INSTALLED_APPS setting. -Preston On Nov 11, 5:19 pm, neridaj wrote: > I'm working on a standalone app and when I try to add i

Re: problems registering models in admin

2009-11-11 Thread neridaj
yeah, that's installed and I've added other models to the admin. On Nov 11, 5:54 pm, Preston Holmes wrote: > Is the admin in your installed apps in settings.py? > > http://docs.djangoproject.com/en/1.1/intro/tutorial02/#activate-the-a... >     Add "django.contrib.admin" to your INSTALLED_APPS set

Re: problems registering models in admin

2009-11-11 Thread Zeynel
My models.py was in the path, C:/sw1/wkw/models.py I had to include sw1: from sw1.wkw1.models import Lawyer I don't if this is true in your case as well. On Nov 11, 8:19 pm, neridaj wrote: > I'm working on a standalone app and when I try to add it to the admin > index it does not show up using

Problem rendering and saving pre-existing file values in a generic_inlineformset

2009-11-11 Thread Rodrigo Cea
I have a generic_inlineformset_factory instance being rendered via a bound form so that users can modify an existing object. The form renders OK, except for the File and Image fields, which show up as empty. The CharFields in the same models have their correct values. If I try to save the form, I g

Re: AssertionError: Response didn't redirect as expected: Response code was 200 (expected 302)

2009-11-11 Thread Preston Holmes
Does your fixture result in a valid form? if the form.is_valid() line doesn't pass, then you would get a 200 from the render to response... -Preston On Nov 11, 4:38 pm, Eesti Mate wrote: > When I'm testing my form with assertRedirects I get the following error > message: > > AssertionError: R

Re: Can I change the restriction on "username" without breaking anything?

2009-11-11 Thread Preston Holmes
On Nov 11, 4:38 pm, "Richard E. Cooke" wrote: > My client wants to use e-mail addresses for user names. > > the contrib.auth application does not have a restriction in its > model.  But the form code has put a regex on the field that disallows > the ampersand (@). fyi ampersand == & > > What w

awkward backward relationships

2009-11-11 Thread }--o
hi, I have the following models: class AbstractTaskOrProject(Model) parent = ForeignKey('AbstractProject') class Meta: abstract = True class AbstractProject(AbstractTaskOrProject) pass class Project(AbstractProject) pass class SubProject(AbstractProject) pass class Task(Abstrac

Re: problems registering models in admin

2009-11-11 Thread neridaj
The model is on my python path and I didn't get an import error so I don't think that's the problem, thanks though. On Nov 11, 6:01 pm, Zeynel wrote: > My models.py was in the path, C:/sw1/wkw/models.py > > I had to include sw1: > > from sw1.wkw1.models import Lawyer > > I don't if this is true i

problem mixing Q and F objects and logical operators

2009-11-11 Thread Evgeny
following two queries give me different number of results: Q(viewed__who=user,viewed__when__lt=F('last_activity_at')) | ~Q(viewed__who=user) ~Q(viewed__who=user) | Q(viewed__who=user,viewed__when__lt=F('last_activity_at')) the first one seems to be more corre

admin.site.register() - help

2009-11-11 Thread neridaj
I'm doing something wrong when I try to register models for the admin interface and I'm not sure what it is. I have everything in my installed apps, is there something wrong with these files? INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessi

Re: admin.site.register() - help

2009-11-11 Thread Kenneth Gonsalves
On Thursday 12 Nov 2009 9:10:04 am neridaj wrote: > I'm doing something wrong when I try to register models for the admin > interface and I'm not sure what it is. I have everything in my > installed apps, is there something wrong with these files? > it would be a good idea also to mention what er

Re: admin.site.register() - help

2009-11-11 Thread neridaj
I don't get an error, the models just aren't showing up in the admin. On Nov 11, 7:56 pm, Kenneth Gonsalves wrote: > On Thursday 12 Nov 2009 9:10:04 am neridaj wrote: > > > I'm doing something wrong when I try to register models for the admin > > interface and I'm not sure what it is. I have ever

Re: admin.site.register() - help

2009-11-11 Thread Zeynel
Sorry, I am a beginner but I noticed that in my models the indent of unicode is indented like this: class SearchKeyword(models.Model): keyword = models.CharField(max_length=50) page = models.ForeignKey(FlatPage) def __unicode__(self): return self.keyword I have no idea if this

Re: admin.site.register() - help

2009-11-11 Thread Kenneth Gonsalves
On Thursday 12 Nov 2009 9:33:20 am neridaj wrote: > I don't get an error, the models just aren't showing up in the admin. > what does syncdb say? -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ -- You received this message because you are subscribed t

Re: admin.site.register() - help

2009-11-11 Thread Kenneth Gonsalves
On Thursday 12 Nov 2009 9:36:11 am Zeynel wrote: > Sorry, I am a beginner but I noticed that in my models the indent of > unicode is indented like this: > > class SearchKeyword(models.Model): > keyword = models.CharField(max_length=50) > page = models.ForeignKey(FlatPage) > def __unico

Re: admin.site.register() - help

2009-11-11 Thread Zeynel
> does this post have anything to do with the subject of the previous post? Yes, but I wasn't sure if the indentation would cause the problem encountered by neridaj. In my screen I saw that neridaj had wrong indent for the code about unicode line. And thanks for the suggestion to try the code on

Re: admin.site.register() - help

2009-11-11 Thread neridaj
it looks like the admin.AdminModel object is causing the error in this inline definition class PageAdmin(admin.ModelAdmin): inlines = [ KeywordInline, ] admin.site.register(PageAdmin) 'MediaDefiningClass' object is not iterable when I comment that out the blog.Categories class i

Re: request.POST['value'] cannot get value, 500 error

2009-11-11 Thread robinne
Thanks. I tried a lot of different options but nothing was working. Finally got it working with this: req = request.POST['value']#this is how InputEx sends it, with root = value. parsedRequest = simplejson.loads(req) print parsedRequest["Username"] Basically, I got the array of 'value', then turn

Re: admin.site.register() - help

2009-11-11 Thread Karen Tracey
On Wed, Nov 11, 2009 at 10:40 PM, neridaj wrote: > I'm doing something wrong when I try to register models for the admin > interface and I'm not sure what it is. I have everything in my > installed apps, is there something wrong with these files? > > [snip] > from django.db import models > from d

Re: admin.site.register() - help

2009-11-11 Thread Preston Holmes
You should change: admin.site.register(PageAdmin) to: admin.site.register(FlatPage, PageAdmin) also I don't see where you are using a generic relation - so the class for your inline should be admin.StackedInline not generic.GenericStackedInline -Preston On Nov 11, 8:37 pm, neridaj wrote: > i

Re: request.POST['value'] cannot get value, 500 error

2009-11-11 Thread Sandman
I've been able to extract values from POST and GET objects by doing request.POST.get('value') Did you try this? Sandman. On Nov 11, 9:07 pm, robinne wrote: > Thanks. I tried a lot of different options but nothing was working. > Finally got it working with this: > > req = request.POST['value']#t

Re: admin.site.register() - help

2009-11-11 Thread neridaj
Hey Karen, I realized that I shouldn't have been using a generic.StackedInline and fixed the indentation. I left the FlatPage out of register because I was getting 'The model FlatPage is already registered'. On Nov 11, 9:09 pm, Karen Tracey wrote: > On Wed, Nov 11, 2009 at 10:40 PM, neridaj wro

Re: admin.site.register() - help

2009-11-11 Thread neridaj
since FlatPage is already registered how do I properly register an InlineModelAdmin object? On Nov 11, 9:51 pm, neridaj wrote: > Hey Karen, > > I realized that I shouldn't have been using a generic.StackedInline > and fixed the indentation. I left the FlatPage out of register because > I was gett

Re: admin.site.register() - help

2009-11-11 Thread Matt Schinckel
On Nov 12, 4:18 pm, neridaj wrote: > since FlatPage is already registered how do I properly register an > InlineModelAdmin object? > You can use: admin.site.unregister(FlatPage) and then re-register with your FlatPageAdmin class: admin.site.register(FlatPage, MyFlatPageAdmin) -- You received

Re: form with loop over fields?

2009-11-11 Thread andreas schmid
Nick Arnett wrote: > > > On Wed, Nov 11, 2009 at 6:48 AM, andreas schmid > wrote: > > > i would need something like: > > jan feb mar apr may > 2007 [...] [...] [...] [...][...] > 2008 [...] [...] [...] [...]

Re: MySQL and 'NoneType object is unsubscriptable' error

2009-11-11 Thread Julien Phalip
On Nov 11, 10:07 am, Julien Phalip wrote: > On Nov 11, 9:37 am, Julien Phalip wrote: > > > > > On Nov 10, 9:12 pm, Daniel Roseman wrote: > > > > On Nov 10, 1:36 am, Julien Phalip wrote: > > > > > Hi, > > > > > I've tried to install MySQL for an existing project, and I'm getting a > > > > strang

Re: Imports, works from directory but not from file

2009-11-11 Thread andreas schmid
Bill Freeman wrote: > Does your project root (I'm assuming that's the directory containing > the sub directory "app") have an __init__.py file. Does the app > directory? I'm assuming that the one you mention below is in > app/models/ . All three are required, if what you have on your > sys.path