'AdminSite' object has no attribute 'urls' issue

2009-02-04 Thread jason
hello all. i followed the django tutorial, to the second part ,when activate the admin site, typing url 'http://localhost:8000/admin/' in the browser's address bar, this error showed up. my django version is 1.0.2, and python version is 2.6, using sqlite3. are there any configurations wrong with

Re: problem about "You appear not to have the 'sqlite3' program installed or on your path."

2009-03-02 Thread jason
understood. thanks very much:-) On Feb 26, 8:03 pm, Ramiro Morales <cra...@gmail.com> wrote: > On Thu, Feb 26, 2009 at 9:51 AM, jason zones <zou...@gmail.com> wrote: > > hello, all. > > i have a problem when i type "python manage.py dbshell" in the comman

Re: Debugging Django scripts problem

2007-09-28 Thread Jason
Hi Jeremy-- Thanks very much for the response! On Sep 28, 5:51 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 9/28/07, Jason Witherspoon <[EMAIL PROTECTED]> wrote: > > > > Okay, I'm guessing a Python reload would indeed help, as I've managed t

Help accessing user.

2007-10-01 Thread Jason
Hi: So I pass the built in login my own template for authentication - and it works. I get a user object back and life is good. However I can't access the user outside of this page/template. I don't seem to be able to get a handle on the Context's so - I'm stuck. Can anyone help. I'd just like

Help setting up urls.py to handle predominantly static site

2007-10-12 Thread Jason
Hey everyone-- I've got a predominantly static site that I need to serve through Django, at least until I can convert more of it over properly. Yes, I know this is discouraged, but it's the only way I'm going to be able to move forward w/this project I cribbed this line: urlpatterns +=

Quick question about switching to newforms-admin branch....

2008-07-15 Thread Jason
...and it is: if I were to switch my current django project over to newforms-admin branch, would it break all of the old admin pages? Or is there legacy support built in? Thanks mucho in advance! --~--~-~--~~~---~--~~ You received this message because you are

Re: newbie urls.py question

2008-08-21 Thread jason
This is probably due to the module pinax being on the pyhton-path. This way you don't have to import it. You can edit the path from python like so: import sys sys.path.insert(0, "/path/to/package") If you install a package using setup.py or setuptools or some other automatic mechanism, it is

Re: How to know which fields a model contains?

2008-08-21 Thread jason
You could use this: Publisher.objects.get(pk=1).__dict__ The admin application is also great for this! :) Best Regards, Jesaja Everling On Aug 21, 10:55 pm, Erik Allik <[EMAIL PROTECTED]> wrote: > Do you mean something like Publisher._meta.fields? > > Erik > > On 21.08.2008, at 22:38, Alexis

Shared userbase and sessions across multiple installs?

2008-09-01 Thread Jason
I'd ask if anyone's attempted this before, or if there's something I'm missing that might help make this possible. Thanks, - Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

BooleanField trouble

2008-09-11 Thread Jason
I have a "true" or "false" string coming in from an ajax call to my view. I'm then turning around and directly assigning that string from the front end to my model object and saving it. Before the upgrade to django 1.0, the database happily accepted my model object's value as 'true' or 'false'

Re: BooleanField trouble

2008-09-12 Thread Jason
yeah, that did work .. I'm just surprised I have to go through that extra step now, when before 1.0 release it seems I didn't have too :/ Anyways, thanks for the thoughts :) On Sep 12, 6:15 am, Gremmie <[EMAIL PROTECTED]> wrote: > On Sep 11, 11:55 pm, Jason <[EMAIL PROTE

Help to get going with Django

2008-09-19 Thread Jason
Hi there, I am new, so new it hurts. I installed the BitNami Django stack on windows XP. I decided not to automatically create a new project because I wanted to find out how to do it myself. This is where my problems started. In the python interpreter I ran 'import django' and that was

How do I set up a python web server on Windows XP?

2008-09-19 Thread Jason
OK, I am literally at the end of my tether. I would like to get started on this but I can't work out how to get a python server running on windows XP... can someone link me to something... somewhere that will give me instruction on how to get this going. Thanks

Re: How do I set up a python web server on Windows XP?

2008-09-19 Thread Jason
OK, dumb question... it comes with a server? Do you have a link? How do I get this development server running? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: How do I set up a python web server on Windows XP?

2008-09-19 Thread Jason
I have read through that. It has taken me around and around in circles. I have spent a day on this and haven't typed a line of code. The guide seems to be written for OSX or Linux. As a Windows user I feel lost, confused and frustrated. I even went out to my library and rented a copy of their

Change text box to a drop down box in the admin interface?

2008-09-22 Thread Jason
Could someone help with this? The admin panel is automatically generating my model. This is my model. title = models.CharField(...) parent = models.CharField(..., null = True) The admin panel is currently displaying 2 text input boxes. What I want to display is a single text input box for the

Re: Change text box to a drop down box in the admin interface?

2008-09-22 Thread Jason
:04 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Sep 22, 2008 at 11:51 AM, Jason <[EMAIL PROTECTED]> wrote: > > > Could someone help with this? > > > The admin panel is automatically generating my model. This is my > > model. > > > t

how to use several different querysets in one single template(for a single url)?

2009-04-13 Thread jason
hi guys, i want to create a page includes several querysets to display several boards of different staffs. i used the generic.list_detail to do this, but the object_list seemed to accept only one dictionary argument to go. so how can i use several querysets in the single template to display

Re: how to use several different querysets in one single template(for a single url)?

2009-04-13 Thread jason
using the common view function(render_to_response) would solve the problems. i should have checked the django documentation more carefully. On Apr 13, 7:48 pm, jason <zou...@gmail.com> wrote: > hi guys, > > i want to create a page includes several querysets to display s

Re: database user vs schema owner

2009-04-30 Thread Jason
I'm running 1.0.2 unfortunately. I'll run the idea of synonyms by our DBAs. Thanks! Jason On Apr 30, 11:53 am, Ian Kelly <ian.g.ke...@gmail.com> wrote: > On Apr 30, 12:30 pm, Jason Geiger <jgei...@nother.net> wrote: > > > Hello. I'm using Oracle and I would like t

Bad snafu with attempted field add to Postgres

2009-05-25 Thread Jason
Hey folks-- hope someone can possibly provide some insight here. I needed to add a field to a model. Django (0.96)/mod_python (3.3.1)/ Python (2.5). Not sure which version of Postgres we're running. So I added the field to the model. Ran manage.py sqlall & got the (very simple) SQL to add the

Re: Bad snafu with attempted field add to Postgres

2009-05-25 Thread Jason
rmat, & all is well. So-- I like Navicat, anyone have any other favorite postgres admin software that doesn't suck? On May 25, 6:59 pm, Jason <elgrandchig...@gmail.com> wrote: > Hey folks-- hope someone can possibly provide some insight here. > > I needed to add a field t

Query Help: "Get Blogs where last Entry.title='foo'"

2009-06-15 Thread Jason
I'm new to django and attempting to leverage the query functionality. I'm not sure if what I'm attempting requires custom sql or if I"m just missing something. I'm spending alot of time with the docs but haven't found guidance for this issue. Just using blogs as an easy example, assume the

Re: Query Help: "Get Blogs where last Entry.title='foo'"

2009-06-15 Thread Jason
ion right there is an example that covers > this exact situation that may help at > > http://docs.djangoproject.com/en/dev/topics/db/queries/#lookups-that-... > > I believe it could come out to something like this: > > e = Entry.objects.filter(title__exact='foo') > > blog =

Re: Query Help: "Get Blogs where last Entry.title='foo'"

2009-06-16 Thread Jason
sets. > > Getting closer? > > On Jun 15, 4:11 pm, Jason <jnorman...@gmail.com> wrote: > > > Close.  That returns all entrys that have title foo.  I need all blogs > > *where the last entry* has title foo.  I think I need to > > leverage .extra(where

Django Comments

2009-09-06 Thread Jason
Well, thanks to a old post on DjangoBot, I've got the new Django Comments framework installed w/o breaking my urls.py (had to go into django.contrib.comments & delete the "url" directory-- was that mentioned in any of the "migrating to 1.0" docs?) Now I'd like to test it out by simply having it

Re: Problem on deploying multi-projects on multi-ports with Apache/mod_python

2009-11-05 Thread Jason
Dear Graham, Thank you for your time! The problem is solved after I add a ServerName directive to each VirtualHost section. Thanks, Jason On Nov 5, 5:42 pm, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > On Nov 5, 5:49 pm, Jason <chao...@gmail.com> wrote: > > >

Another Django vs. Rails comparison

2009-11-09 Thread Jason
This is my first post to this group, but I've benefited from reading other's posts and I'm looking forward to getting more involved. I just picked Django/Python as the framework for a new company I just started: FeedMagnet (http://feedmagnet.com). We want to get more involved in the community -

Using Sass with Django makes CSS so much easier to maintain

2009-11-16 Thread Jason
he site. I thought I'd share how we were doing things in hopes that others can benefit. Here's the link to the post: http://budurl.com/sass - Jason -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Admin meta ordering not case-insensitive

2008-04-10 Thread Jason
Hi all-- I'd like my categories to be ordered reverse alphabetically, so I've done the following: class Category (models.Model): name = models.CharField(max_length=50) slug = models.SlugField(prepopulate_from=("name",)) supercategory =

Problems setting up test Django server

2008-05-21 Thread Jason
of Django to work with it. Here's the Apache .conf settings for the main port 80 site: SetHandler python-program PythonPath "['/home/jason/killdjangokill'] + sys.path" PythonHandler django.core.handlers.modpython

Re: Problems setting up test Django server

2008-05-21 Thread Jason
On May 21, 4:17 pm, Jashugan <[EMAIL PROTECTED]> wrote: > On May 21, 4:10 pm, Jason <[EMAIL PROTECTED]> wrote: > > > Hey folks-- > > > I'm trying to set up a mirror instance of Django on our webserver, > > having grown tired of bringing our whole site dow

Re: Problems setting up test Django server

2008-05-21 Thread Jason
lt;[EMAIL PROTECTED]> wrote: > On May 22, 9:41 am, Jason <[EMAIL PROTECTED]> wrote: > > > > > On May 21, 4:17 pm, Jashugan <[EMAIL PROTECTED]> wrote: > > > > On May 21, 4:10 pm, Jason <[EMAIL PROTECTED]> wrote: > > > > > Hey folks-

Re: Problems setting up test Django server

2008-05-21 Thread Jason
And indeed, throwing in a "PythonInterpreter site" in my port 80 VirtualHost, & a PythonInterpreter testsite in my port 8080 VirtualHost solved all my problems. You guys are the best! On May 21, 5:54 pm, Jason <[EMAIL PROTECTED]> wrote: > Awesome!  Thanks for all the

Re: Problems setting up test Django server

2008-05-24 Thread Jason
ogin to the other one. Barring someone having any insight here, I guess I should either investigate mod_wsgi for the test suite, or give up on the idea of having a test suite on the same box/apache instance-- which would be a major bummer. On May 21, 6:14 pm, Jason <[EMAIL PROTECTED]

Re: Problems setting up test Django server

2008-05-25 Thread Jason
te's admin pages. So I'm flummoxed. Guess it's a separate test box for me for the time being. Thanks for trying though! On May 25, 2:34 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On May 25, 9:15 am, Jason <[EMAIL PROTECTED]> wrote: > > > > > Well, actuall

ManyToManyField-- any way to have it editable inline from both sides?

2008-06-14 Thread Jason
Sorry if this has been addressed-- having trouble figuring out how to search for this issue. Basically, I'd like to be able to edit many-to-many relationships from both admin screen, so if "articles" has a mtm relationship w/"categories", I can see both which categories are attached to articles

Conditional template formatting

2007-12-26 Thread Jason
- - widget2 Bill Rogers45 widget3 - - widget4 My query is based on the widgets, it's related to a customer field. Thanks for any advice. jason --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: IDE

2008-03-07 Thread jason
1 vote for SPE, aka Stanis Python Editor. It has syntax coloring and calltips, I think it uses pycrust for that internally. When you open a bracket, you will get a bubble reminding you of the arguments you have to/can supply. It is also reasonably customizable, and offers a lot of functionality

Re: IDE (UML )

2008-03-07 Thread jason
SPE features UML generation. I don't know if this is what you want, if not you might want to try bluej. Best Regards, jason On Mar 7, 10:21 am, Jean-Christophe Kermagoret <[EMAIL PROTECTED]> wrote: > Simone Cittadini a écrit :> Since there's an active discussion about ide .. >

Division within django templates

2012-02-19 Thread Jason
Hi there, i'm currently using the widthratio tag for division within a django template as detailed here: http://slacy.com/blog/2010/07/using-djangos-widthratio-template-tag-for-multiplication-division/. However, it only returns integer values. Is there something equally smart I can use to

Re: Problems creating django project in Windows 7

2012-03-07 Thread Jason
Use python before all your commands. Even if you setup windows to automatically work without this, it's still a really good habit to get into. python django-admin.py My guess is that either will work or you have a problem with your python environment. Eventually you'll stop using Windows for

Re: Problems creating django project in Windows 7

2012-03-09 Thread Jason
Pycharm is awesome. I've run it from WindowsXP/Windows7/Ubuntu/OSX and it's great. In terms of cross platform compatibility, I also rarely run into anything which I think speaks pretty highly of Python and Django. The Virtual Environments really help a lot. Most of the development I do is

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

2012-09-07 Thread Jason
Hi there, I'm using django 1.2 and am attempting to get the following code to work. private_folder_details = [{"folderId":"", "name": "The folder name"},{"folderId":"1221", "name": "The other folder name"}] private_folders = [{"id":""},{"id":""}] {% for folder in private_folders %}

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

2012-09-08 Thread Jason
, 2012 at 6:19 PM, Tim Chase > <django...@tim.thechases.com > 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

Moving variable names to external js file - how can I map the variables values to the new location?

2013-01-26 Thread Jason
Hi there. I am moving some javascript from my html to an external js file. At present however, whenever my pages are rendered I use variable names to give url endpoints, for example: $('#address').editable( { type: 'text', send : "always",

Re: Moving variable names to external js file - how can I map the variables values to the new location?

2013-01-26 Thread Jason
gt; Hope this helps, > > On Sat, Jan 26, 2013 at 8:54 AM, Jason <1jason@gmail.com > > wrote: > >> Hi there. >> >> >> I am moving some javascript from my html to an external js file. At present >> however, whenever my pages are r

Possible to run manage.py sqlall [appname] without db connection?

2011-10-26 Thread Jason
I need to be able to output the table creation code but I don't necessarily have access to a database. Why does simply outputting the SQL require first connection to a database? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Possible to run manage.py sqlall [appname] without db connection?

2011-10-27 Thread Jason
nection info. > > On Oct 26, 6:18 pm, Jason <goodri...@gmail.com> wrote: > > > > > > > > > I need to be able to output the table creation code but I don't > > necessarily have access to a database. > > > Why does simply outputting the SQL require

Re: How to load data to auth_permissions from initial_data.json when the auth_groups is also loaded from fixture?

2011-11-08 Thread Jason
I'm investigating this as well. I just read that using the natural keys dumpdata option might help. https://docs.djangoproject.com/en/dev/topics/serialization/#topics-serialization-natural-keys On Oct 28, 9:48 am, ycseattle wrote: > Hi, > > In my application, I have fixed

Can a template extend a template?

2011-12-13 Thread Jason
Hi there, I love the concept of DRY, and django's enthusiasm for this concept. In light of this I have tried to have a template extend a template, but it doesn't seem to work. Is there a better way than what I'm currently doing? The current way index.html {% if current_user %} {%

Re: Can a template extend a template?

2011-12-14 Thread Jason
That's a cool idea Ian. I was reluctant to put this code serverside (MVC considerations) but I see now that really it is somewhere in the app logic rather than display so it kinda fits in with that methodology... I'll give it a bash. Thanks for the explanation Russell. -- You received this

Is there a simple way to write the site root as a variable clientside

2012-02-04 Thread Jason
Hi there, Is there a simple way to write the site root as a variable clientside? i.e. if I'm running locally the site root var with appear clientside as http://localhost:1010 however if I deploy the root will be http://www.mysite.com? Cheers, J -- You received this message because you are

Re: Problems with Django Form Processing

2012-02-06 Thread Jason
Your numerical values might be considered strings for that comparison. Try: if int(p) > 2: ... On Jan 16, 11:05 pm, zhyr28 wrote: > Hi all, I want to develop a survey app that has ten radio selects. > After people submit the survey, the data will be processing and then >

Re: How can I know when the third multiple is reached in an arbitrarily long list

2012-02-13 Thread Jason
Thank you so much Shawn - you saved the day there! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Bsqh5-j2Q34J. To post to this group, send email to

probably a simple query: looping for an integer number within an html page

2011-04-30 Thread Jason
Hi there, I am writing a list with values to a web page. Within that page a list item (somelist.int_item) takes an integer value. What I'm trying (and failing) to do is to write a for loop that repeats for the number in the integer item. So far I've got {% for number in somelist.int_item %}

Interpreting html tags within a unicode string rather than simply writing them

2011-05-12 Thread Jason
Hi there, I have a letter stored in my database which I would like to write to a html page preserving the formatting. The letter is standard text, however has some non ascii characters e.g. £ $ and so on which means the letter takes a unicode type. In the letter I have replaced line breaks

USE_L10N set to False in settings.py doesn't work (django 1.3)

2011-06-22 Thread jason
Hello all, i set USE_L10N to False in my project's settings.py ( LANGUAGE_CODE = 'zh-CN', USE_I18N = True, USE_L10N = False), but it doesn't work in the template tag {{ pub_date.date }}, e.g. it still trans the date format to my current locale(zh-cn). i want to display the original date

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-23 Thread Jason
+1 Very interested. On Jun 22, 3:47 pm, "Cal Leeming [Simplicity Media Ltd]" wrote: > Nice, seems like there is a lot of positive feedback. > > Here's some further info about the webcast/webinar: > > *Expected Date:* July/August > *Expected Time:* Somewhere

Re: giving download links

2011-06-30 Thread Jason
Actually, to serve the media you'll want to use any normal web server such as Apache or Lighttpd. In other words, Django has nothing to do with serving up those files. The Django application only provides a means for users to upload to the media folder. The media folder has to be configured

Re: django/python performance vs play/java

2011-07-07 Thread Jason
Good catch. Drakkan, I suggest trying out this ProfilingPanel for the Django Debug Toolbar (very easy to setup). http://backslashn.com/post/505601626/profiling-execution-with-the-django-debug-toolbar I'd be very curious to know what you find. On Jul 7, 8:16 am, akaariai

Re: django/python performance vs play/java

2011-07-07 Thread Jason
I recommend you give this a shot: http://backslashn.com/post/505601626/profiling-execution-with-the-django-debug-toolbar It might give some clues and is VERY fast to setup. On Jul 6, 8:44 am, drakkan wrote: > You can download the code here: > >

Re: Django 1.2 modelformset_factory fails with meta: widgets

2010-09-01 Thread Jason
_formfield, >   extra=0) > > On Jul 29, 11:33 am, Jason <goodri...@gmail.com> wrote: > > > Can anyone confirm that passing in a form withMeta.widgets set to > > modelformset_factory() does in fact work? > > > I've tried stripping my code down to the basics an

Re: can't get m2m_changed signal working

2010-09-14 Thread Jason
Is the m2m_changed() call in the models.py? Also, it looks indented - if it is, it shouldn't be - in other words - it doesn't belong to the model. On Sep 13, 1:27 pm, allyb wrote: > I'm finding it difficult to denormalise a field in a django model. I > have: > >    

Querying Exact Foreign Key Sets

2010-09-14 Thread Jason
Say for example you have two models: Article Category Articles can have multiple categories. How would you go about finding the Articles that contain only a certain set of Categories? The 'in' operator doesn't do me any good. Excludes look like they are needed... I'm in a situation where

Re: can't get m2m_changed signal working

2010-09-14 Thread Jason
s, it is called in models.py, and no, it's not indented and neither > is the handler function. > > On Sep 14, 4:28 pm, Jason <goodri...@gmail.com> wrote: > > > Is the m2m_changed() call in the models.py? > > > Also, it looks indented - if it is, it shouldn't be - in

Re: Querying Exact Foreign Key Sets

2010-09-15 Thread Jason
s) > > > > On Tue, Sep 14, 2010 at 5:58 PM, Jason <goodri...@gmail.com> wrote: > > Say for example you have two models: > > > Article > > Category > > > Articles can have multiple categories. > > > How would you go about finding the Article

Re: subclassing UserCreationForm

2010-09-24 Thread Jason
I'm not sure how to solve your exact problem but I would recommend NOT extending the user class here. You'll probably want to create a manytomany field on your Course model that contains users. And if you're going to have many different types of users you'll want to create groups. Put students

Re: subclassing UserCreationForm

2010-09-24 Thread Jason
Don't get me wrong - I'm not saying my way is right and I'm not saying anyone is doing anything necessarily wrong. I'm still a Django noob in a lot of ways. Just things to keep in mind - if you do have multiple types of users subclassing might be a bad idea if there are possibilities of being

Re: subclassing UserCreationForm

2010-09-24 Thread Jason
> Well, first I can to "if X == Student: ...", and I know the fields will be > there. > Second, User will have no additional properties (as I understand), but once > I do "Model --> User" relations ALL users will have that property. So each > user might have the .course property, AND the .subject

Re: IDE for Python/django

2010-09-27 Thread Jason
PyCharm is pretty amazing but it costs $ after its out of beta. Best code completion I've seen for Django. My ONLY complaint is you can't open up a python console during debug. It has a pretty good debugger but seeing as other IDEs have no problem here I don't know why they left it out. Still, I

Creating a document library App...

2010-10-14 Thread Jason
Django makes it pretty straight forward to create a simple document library - especially if all of the "docs" are stored as text in the database. Searching for information seems to be the hard part here. Django-Sphynx looks like an awesome solution for searching database text. The problem I

|title filter selectively not functioning

2010-04-17 Thread Jason
Hey everyone-- This is driving me a little crazy. Here's my complete template code for the following page: http://www.rainbow.coop/products/sundries.html {% if sundries %} The following products are currently on sale in the

Django 1.2 modelformset_factory fails with meta: widgets

2010-07-28 Thread Jason
For example: class ArticleForm(ModelForm): class Meta: model = Article widgets = { 'pub_date': SplitSelectDateTimeWidget(), 'expire_date': CalendarWidget(attrs={'class':'date- pick'}) } And in a view function: ... ArticleFormSet =

Re: Django 1.2 modelformset_factory fails with meta: widgets

2010-07-28 Thread Jason
te-packages\django\forms\models.py" in fields_for_model 178. formfield = formfield_callback(f, **kwargs) Exception Type: TypeError at /newsmail/manage/ Exception Value: () got an unexpected keyword argument 'widget' On Jul 28, 12:00 pm, Daniel Roseman <dan...@roseman.org.uk&

Re: Django has incorrect time

2010-07-29 Thread Jason
Try changing time zones in your settings.py For example: TIME_ZONE = 'America/Los_Angeles' And make sure if you're running on Windows it matches your system's time zone. Regardless, you should see some kind of change when you do this. If you don't perhaps the settings.py isn't loading properly.

Re: Django 1.2 modelformset_factory fails with meta: widgets

2010-07-29 Thread Jason
understand. If anyone else has this problem I'll go ahead and submit a bug report. On Jul 28, 12:50 pm, Jason <goodri...@gmail.com> wrote: > Traceback: > File "C:\Python25\lib\site-packages\django\core\handlers\base.py" in > get_response >   100.                    

Re: field.label in template converts to lower case in 1.2.1

2010-07-29 Thread Jason
I think Django's been doing that for a long time (not just 1.2.1). Probably the quick and easy way to change case would be to use just field.label and pump it into whatever format you want: {{ field.label|upper }} You'll have to manually create the rest of the html for the label using

Re: field.label in template converts to lower case in 1.2.1

2010-07-29 Thread Jason
his issue in 1.1.1. I was wondering if there was a way to > ignore the conversion. > > On Thu, Jul 29, 2010 at 5:02 PM, Jason <goodri...@gmail.com> wrote: > > I think Django's been doing that for a long time (not just 1.2.1). > > > Probably the quick and easy way to change

Re: field.label in template converts to lower case in 1.2.1

2010-07-30 Thread Jason
split(' ') >                         self.fields[fieldname] = forms.SplitDateTimeField( >                         required=False, >                         widget = > MySplitDateTimeWidget(datevalue=datelist[0], >                         timevalue=datelist[1])) >             if co

Re: field.label in template converts to lower case in 1.2.1

2010-07-30 Thread Jason
Actually - make that change to the rest of the field options too. The word wrap threw me off there at the end. On Jul 30, 8:16 am, Jason <goodri...@gmail.com> wrote: > Looks like you are generating the fields in two different cases. > Here's the second one: > >          

IntegrityErrors after Postgres database restore attempt

2009-12-30 Thread Jason
Hi folks-- I recently hosed my django database, & attempted to do a restore using Navicat for Postgresql. Seems like this was not the thing to try, as django now throws these: IntegrityError: duplicate key violates unique constraint "django_content_type_pkey" (for instance, after adding a new

A Query question about Many-to-many relationships

2010-02-21 Thread Jason
) If I already had a QuerySet of Article named articles, how to get a QuerySet of Publication by these articles, and count the articles by the Publication? Thanks a lot! Jason -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: A Query question about Many-to-many relationships

2010-02-22 Thread Jason
Hi Atamert, Thank you so much! The following statement works! This is really simple but fantastic!!! Publication.objects.filter(article__in = article_qs).annotate(Count('article')) Sincerely, Jason -- You received this message because you are subscribed to the Google Groups "Django

Re: Pinax: worth installing?

2011-01-19 Thread Jason
I've found the current state of Pinax to be a bit hard to use. Yes, it offers these 'ready-to-use' projects but they do not work out of the box. There are CSRF problems, they don't load the initial sample data properly, and sometimes they just don't load at all. This is the case at least when I

Re: Expert help needed --LINUX on virtualBox using Windows 7 machine

2011-01-21 Thread Jason
http://virtualboxes.org/images/debian/ Download a ready to use Debian image here. Make sure you know how to use VirtualBox. On Jan 21, 8:08 am, Mike Ramirez wrote: > On Friday, January 21, 2011 07:00:51 am Steven Elliott Jr wrote: > > > > he is not doing dual boot - he is

Re: Pinax: worth installing?

2011-01-21 Thread Jason
, but right now I'm not confident enough to use it. On Jan 19, 10:55 pm, Derek <gamesb...@gmail.com> wrote: > Jason > > I have been planning to use Pinax for a large social network site, but your > comments make me concerned (and wondering if I should wait for a 1.0 > rele

Re: Pinax: worth installing?

2011-01-21 Thread Jason
Yeah, I've done it both ways for my projects. I just assumed that in this case it would auto load data if they are calling it 'ready to use'. Pretty minor complaint on my part really. And if after I loaded the data everything worked fine, I wouldn't have brought it up in the first place. On Jan

Re: Pinax: worth installing?

2011-01-22 Thread Jason
Are there any gotchas when using the current 'pip' version Pinax using the account_project in Django 1.2? BTW James you're my Django hero. :P On Jan 22, 3:03 pm, James Tauber wrote: > And if your site will have users who need to manage their accounts, chances > are

Re: help understanding mptt/treebeard

2011-02-03 Thread Jason
"maybe a chapter needs to be added as the 13th chapter in a Book, for example" MPTT and the other trees are mainly used on data structures where node insertion might happen anywhere on a tree. In your case, you only put chapters in books and would never move a chapter inside of a 'Library' or

Can't get my URLs right.

2006-12-27 Thread Jason
/. Easy as that. So I need to understand why it's going /about/css and stop it. Thanks, Jason. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Project and App Layout.

2006-12-27 Thread Jason
called 'main' and am putting all my fairly static content in it. Thanks, Jason. --~--~-~--~~~---~--~~ 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@google

Complex Data Models.

2006-12-27 Thread Jason
What do we do in Django if we want to use complex data models like JOINs, or a shopping card with invoices and line-items? Do we try and keep as much in the database as possible using stored procedures or views? What happens to the model when you want to do more than just SELECT x, y, z FROM A?

Use a simple query string.

2007-02-04 Thread Jason
Can anyone help with my super simple query string problem I'm simply trying to get www.mysite.com/uptodate?build=123 parsed. The problem is I can't get any URL to match (I keep getting 404 - page not found). My URL: (r'^uptodate(?P\d+)/$)', prog.main.uptodate'), My View: def

Re: urls parameter - deliver query set

2007-02-05 Thread Jason
Hi: DId you ever find a solution to this? I'm having a similar probme but want to deliver the query set like: http://www.foo.com/books?a=12345 Jason. On Feb 3, 6:52 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > i would like to deliver a query set t

multiple inheritance?

2006-01-31 Thread jason
(maxlength=255) def __repr__(self): return self.name class META: admin = meta.Admin() but the result is only taggable, and not noteable. Any ideas? thanks, jason pepas

Problem using a related object in __repr__()

2006-02-01 Thread jason
when I hit "submit", it throws an exception. Unfortunately the exception gets clobbered, but I added a quick one-liner hack to print it out before it gets clobbered, and this is the error: 'Bar' object has no attribute 'foo' What am I missing? Thanks, Jason Pepas

Removing the Magic Branch release schedule

2006-02-03 Thread jason
Hi Guys, I have just realized how awesome having multiple inheritance will be, so I am wondering if there is a guess at a release date for Django 0.92? I guess I just try out the branch itself until the release is made. Thanks for all your hard work! Jason Pepas

Where is the best place to get assistance installing Red Hat, Oracle and Django onto a VPN?

2015-06-10 Thread Jason
We are a group of developers that are reasonable new to the Django web framework. We've managed to build an application that is currently housed in PythonAnywhere and are now at the stage where we would like to conduct some performance testing. Our current plan is to rent some space from a VPN

Re: Questions about setting up my first app in django tutorial

2014-04-18 Thread Jason
from django.contrib import admin from polls.models import Poll class PollAdmin(admin.ModelAdmin): pass admin.site.register(Poll, PollAdmin) On Thursday, 17 April 2014 00:03:03 UTC-4, Xiaofeng Feng wrote: > > I am now trying to set up my first app using django tutorial. However, I > was

  1   2   3   4   5   6   7   8   9   >