Correlate swingtime events with my existing users model.

2015-05-23 Thread green leaf
I have a 'User' model holding some information like username password etc. After installing swingtime I was hoping to correlate its 'Event' model with my 'User' model so I can add events for every individual user. Contrary to the 'polls' tutorial though this is different as I have not created

ManyToManyField in inline on admin?

2008-12-17 Thread Leaf
relevant parts of admin.py and models.py, as well as the full traceback, on Dpaste (http://dpaste.com/100167/), so can anyone explain how I can get the admin to do this? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: unable to open database file - sqlite3/apache problem - help?

2008-10-14 Thread Leaf
AppArmor either. I might try switching over to PostgreSQL, as that will probably resolve the problem (and I'll need to eventually anyway), but I'd like to figure out what's going on as well. Regards, Leaf On Oct 14, 10:44 am, Odie <[EMAIL PROTECTED]> wrote: > Hello, > > On Oct 11,

Claiming a field that exists is not existing in admin

2008-10-10 Thread Leaf
dpaste.com/83604/. Can someone explain what is going on? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com

Re: Two-way many-to-many fields in admin

2008-09-03 Thread Leaf
oManyField in the admin's "fields" parameter, or something more complex? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@g

Two-way many-to-many fields in admin

2008-09-01 Thread Leaf
g the name of the back relationship from the ManyToManyField in the admin's "fields" parameter, or something more complex? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: ValueError at /pages/

2008-09-01 Thread Leaf
ctually do something. Regards, Leaf On Sep 1, 1:53 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-09-01 at 10:39 -0700, Leaf wrote: > > All the info is athttp://dpaste.com/75250/. I really have no idea > > what this error is trying to tell me. Can anyone

ValueError at /pages/

2008-09-01 Thread Leaf
All the info is at http://dpaste.com/75250/. I really have no idea what this error is trying to tell me. Can anyone explain what it might be? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Rendering template tags from strings?

2008-09-01 Thread Leaf
te) Would there be any way to run template tags from strings being output to the template? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: How to pass queryset to the next request (e.g., search term refinement)?

2008-08-31 Thread Leaf
existing numbers to increment it. There's still a slight risk that you'd get your querysets crossed, but it's still not very likely, and it's easier to implement. And it doesn't really matter from a security standpoint - if someone could get into your database anyway, it wouldn't matter what kind o

Re: How to pass queryset to the next request (e.g., search term refinement)?

2008-08-31 Thread Leaf
randomKey with the randomKey from the hidden field. If they match, display the refined results. If no randomKeys match, then display a field that says "Search first, then refine." Regards, Leaf On Aug 31, 4:53 pm, Egon Esser <[EMAIL PROTECTED]> wrote: > > When the user enter

Handy tip for Mac OS X Django users

2008-08-31 Thread Leaf
I've recently discovered how incredibly customizable Mac OS 10.5's Terminal can be. For example, I created a custom setup that is useful for Django developers. Whenever it opens, it automatically starts my Django server, and instead of using Ctrl+C to stop the server, I can just press End to both

Space added when including URLs

2008-08-30 Thread Leaf
I'm testing a styles app, and I tried this URL: http://localhost:8000/styles/css/test-style/ When I did that, it responded with a 404 error. It said it checked against the URLConfs I had included, which were: # /devsite/urls.py urlpatterns = patterns('', # Example: # (r'^devsite/',

Admin styles disappeared

2008-08-30 Thread Leaf
an alternate Web server to serve the admin media? If not, how can I get it to set up properly so I can have my shiny blue theme back? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: Unaccountable syntax error

2008-08-30 Thread Leaf
AIL PROTECTED]> wrote: > On Sat, Aug 30, 2008 at 9:50 AM, Leaf <[EMAIL PROTECTED]> wrote: > > > I'm having a problem when I try to validate my models. The interpreter > > somehow takes offense at this line: > > >box_text_color = models.ColorField("Box Text Co

Unaccountable syntax error

2008-08-30 Thread Leaf
rField, which it did accept: bg_color = models.ColorField("Background Color") When it rejected it, the flow looked like this: File "/Users/leaf/Django/devsite/../devsite/djstyles/models.py", line 47 box_text_color = models.ColorField("Box Text Color")

manage.py runserver > cannot import name models

2008-08-26 Thread Leaf
The subject line should be pretty self-explanatory. I try to run "manage.py runserver", and I get "Error: cannot import name models" in bold, red text. That's the only output I get. Does anyone know what causes such an error, or where it is referrin

Example of template tag I can modify?

2008-08-24 Thread Leaf
It's me again. After yelling, "I HATE WINDOWS!", switching to Mac, and not thinking about Django again until I upgraded to OS X 10.5 (with Python 2.5 and SQLite 3 included), I've decided to rewrite my Dj Styles application to brush up on my skills. One of the fundamental concepts of Dj Styles is

Re: Example of template tag I can modify?

2008-08-24 Thread Leaf
to do. Regards, Leaf On Aug 24, 8:01 pm, Leaf <[EMAIL PROTECTED]> wrote: > It's me again. After yelling, "I HATE WINDOWS!", switching to Mac, and > not thinking about Django again until I upgraded to OS X 10.5 (with > Python 2.5 and SQLite 3 included), I've decided

Re: "ColorField"?

2008-07-07 Thread Leaf
Also note - when I say this, I'm talking about something that can plug in to the admin interface. Just clearing that up. Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

"ColorField"?

2008-07-07 Thread Leaf
Does anyone know if there is such thing as a ColorField - something that stores a hex value and has a JavaScript-powered color picker beside it? If there is, where can I get it? If there isn't, how would I go about writing one? Regards, Leaf

Unexplainable syntax error

2008-07-07 Thread Leaf
s', {style: you_cant_handle_my_style} This one has me really confused. Does anyone know what could have happened here? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Error in URL configuration

2008-07-07 Thread Leaf
n urls.py in my project root, lines 18-23 is dbsettings/urls.py, lines 27-32 are dj_styles/urls.py, and lines 36-69 are the traceback returned from the error screen). Does anyone know why this result would be given? Regards, Leaf --~--~-~--~~~---~--~~ You received this

Re: Another error

2008-07-04 Thread Leaf
I really need to stop making assumptions about Python. Again, I assumed that the parameters wouldn't be case-sensitive. Most of my programming experience has been in BASIC and PHP, which aren't quite as picky. Thanks for all your help. Regards, Leaf On Jul 4, 10:56 pm, Malcolm Tredinnick

Another error

2008-07-04 Thread Leaf
an clearly see I used the newer max_length version. At any rate, it seems like I need help again. Can anyone explain what this error is, why it got called, and how to fix it? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Syntax error: "can't assign to operator"

2008-07-04 Thread Leaf
Okay. I'll run a quick find-and-replace to set all my identifiers to use underscores instead of hyphens. I'm not that familiar with Python, so I assumed that it would recognize hyphens as a seperator and not a minus sign. Regards, Leaf On Jul 4, 10:27 pm, Malcolm Tredinnick <[EMAIL PROTEC

Syntax error: "can't assign to operator"

2008-07-04 Thread Leaf
ed searching the Internet for the syntax error, but couldn't find anything that was particularly helpful. Does anyone know what's wrong with my code that could be causing this error? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are su

Defaults with "choices"

2008-07-04 Thread Leaf
rded to the database or the verbose, user-friendly name? Or will either suffice? Regards, Leaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Installation error - missing module django.core

2008-07-03 Thread Leaf
Thanks for the help. I really should have followed the instructions better, I guess. On Jul 3, 3:51 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On Thu, Jul 3, 2008 at 3:25 PM, Leaf <[EMAIL PROTECTED]> wrote: > > 3. To make sure that I could run prop

Installation error - missing module django.core

2008-07-03 Thread Leaf
I'm trying to install Django on Windows XP SP2, but I received an error while doing so. 1. I downloaded and installed Python 2.5, PostgreSQL 8.3.1, and psycopg. 2. I used TortoiseSVN to check out the latest revision from the SVN repository at http://code.djangoproject.com/svn/django/trunk/ and