Re: admin login returns 500 error

2008-03-25 Thread Graham Dumpleton
On Mar 26, 3:43 pm, Floyd Arguello <[EMAIL PROTECTED]> wrote: > Hi all, > > I've been working on this a few hours now, and I feel like someone has > dropped a BFR on my head. Logging into the Django Admin returns a very > informative 500 error. Anyone run into this before? Any ideas? If it is so

Re: What software is used to draw flow chart in the django book?

2008-03-25 Thread speleolinux
Hi all On Mar 21, 12:47 am, "John.H" <[EMAIL PROTECTED]> wrote: > Can anyone tell me? > How can I draw figures like > :http://new-media.djangobook.com/content/en/1.0/chapter03/get_response... Have a look at GraphViz: http://www.graphviz.org/ It's really powerfull and cool. There are alsp

admin login returns 500 error

2008-03-25 Thread Floyd Arguello
Hi all, I've been working on this a few hours now, and I feel like someone has dropped a BFR on my head. Logging into the Django Admin returns a very informative 500 error. Anyone run into this before? Any ideas? Thanks, Floyd --~--~-~--~~~---~--~~ You

This video is exactly why WE LOVE porn.

2008-03-25 Thread sweety
Hot World -- XXX *** http://myprofile96321.blogspot.com/ http://xbeautyx.notlong.com/ http://vorld2x.notlong.com/ *** --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Sex Videos and Sluts with Big Breasts

2008-03-25 Thread sweety
Hot World -- XXX *** http://myprofile96321.blogspot.com/ http://xbeautyx.notlong.com/ http://vorld2x.notlong.com/ *** --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Hot World -- XXX

2008-03-25 Thread sweety
Hot World -- XXX *** http://myprofile96321.blogspot.com/ http://xbeautyx.notlong.com/ http://vorld2x.notlong.com/ *** --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

College Sex Video(♥)Group Sex Video& Pics

2008-03-25 Thread sweety
Hot World -- XXX *** http://myprofile96321.blogspot.com/ http://xbeautyx.notlong.com/ http://vorld2x.notlong.com/ *** --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Displaying a variable in my base template

2008-03-25 Thread [EMAIL PROTECTED]
If it is going to be in every page I would just use the now tag( http://www.djangoproject.com/documentation/templates/#now ) in the base.html On Mar 25, 9:56 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Hello everyone, > > Still fairly new to Django, but I'm loving it! > > I have a base html

Displaying a variable in my base template

2008-03-25 Thread Brandon Taylor
Hello everyone, Still fairly new to Django, but I'm loving it! I have a base html template that I would like to display the current year in. Where should I put the action that retrieves the current year if I would like the value to appear on every page? Thank you, Brandon

User created in postgresql is not found when Adding Data to the API.

2008-03-25 Thread Chirolo
Hello to all. I'm a newbie trying to learn Django. I'm running Django in a local machine with postgresql_psycop2 database in Ubuntu 6.02. So far I have been able to set up Django, Postgresql with no problems. I was able to create a project name iFriends, a model People, and a class Person. I also

Re: OT: Django logo

2008-03-25 Thread Ned Batchelder
The "perfectionists with deadlines" tagline is also in Prokyon, but a different weight (regular or light). The line below that on the home page ("Django makes it easier..") is not Prokyon (the j and g are different), maybe Verdana? Not sure why the white text and the green text would be in

Re: Showing day in html but cannot check the day on django

2008-03-25 Thread Juanjo Conti
soe escribió: > Hi joe, >where can i search python date, I am beginner to django and python. > thank ur help, http://pleac.sourceforge.net/pleac_python/datesandtimes.html http://docs.python.org/lib/module-datetime.html Greets, Juanjo -- mi blog: http://www.juanjoconti.com.ar

Re: OT: Django logo

2008-03-25 Thread Alvaro Mouriño
On Tue, Mar 25, 2008 at 10:02 PM, Justin Lilly <[EMAIL PROTECTED]> wrote: > whatthefont.com couldn't find a good match. > I didn't know that site. I checked and matched 5 fonts, but none of them was exactly it, but still does a great job recognizing the letters! -- AlvAro

Re: Showing day in html but cannot check the day on django

2008-03-25 Thread soe
Hi joe, where can i search python date, I am beginner to django and python. thank ur help, soe On Mar 26, 12:34 am, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > Python has a number of good date/time packages that you can use to do > this... why don't you look into one of those. > > -joe > > > >

Re: OT: Django logo

2008-03-25 Thread Justin Lilly
Whoops. Just realized you wanted to know the other font. For those fontographers looking for an example, http://media.djangoproject.com/img/desktops/djangodesktop-1680x1050.jpg but whatthefont.com couldn't find a good match. -justin On Tue, Mar 25, 2008 at 8:51 PM, Justin Lilly <[EMAIL

Re: OT: Django logo

2008-03-25 Thread Justin Lilly
The font is called Prokyon. http://www.dutchtypelibrary.nl/Prokyon_rdrct.html -justin On Tue, Mar 25, 2008 at 8:25 PM, Alvaro Mouriño <[EMAIL PROTECTED]> wrote: > > On Wed, Feb 28, 2007 at 9:35 PM, Jacob Kaplan-Moss > <[EMAIL PROTECTED]> wrote: > > On 2/28/07, cjl <[EMAIL PROTECTED]> wrote: >

Re: File upload doesn't work

2008-03-25 Thread Carl
On 26 Mrz., 00:29, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-03-25 at 16:19 -0700, Carl wrote: > > Hi Djangonauts, > > > i've a problem here driving me nuts - obviously I don't get it how to > > do a simple file upload: > > > With a form like this: > > > > >       > >      

Re: OT: Django logo

2008-03-25 Thread Alvaro Mouriño
On Wed, Feb 28, 2007 at 9:35 PM, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > On 2/28/07, cjl <[EMAIL PROTECTED]> wrote: > > Way off topic...anyone know which font is used for the django logo? > > It's DTL Prokyon (http://www.dutchtypelibrary.nl/Prokyon_rdrct.html -- > terrible HTML alert).

Re: unit testing Q

2008-03-25 Thread Russell Keith-Magee
On Tue, Mar 25, 2008 at 11:44 PM, Jeff Gentry <[EMAIL PROTECTED]> wrote: > > Hi there ... > > As a relative newcomer to Django, I recently starting looking at how best > to implement unit tests for my app. I came across this page: > http://www.djangoproject.com/documentation/testing/ > as

Re: File upload doesn't work

2008-03-25 Thread Malcolm Tredinnick
On Tue, 2008-03-25 at 16:19 -0700, Carl wrote: > Hi Djangonauts, > > i've a problem here driving me nuts - obviously I don't get it how to > do a simple file upload: > > With a form like this: > > > > > > > and a view function like this: > > def test(request): > if

File upload doesn't work

2008-03-25 Thread Carl
Hi Djangonauts, i've a problem here driving me nuts - obviously I don't get it how to do a simple file upload: With a form like this: and a view function like this: def test(request): if request.method=='GET': return render_to_response('test.html') else: assert

Re: Admin not working after media is used for CSS

2008-03-25 Thread Francisco Benavides
THANK YOU :) On Mar 25, 2:26 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi, > > > > > But, if I click on any one given table and/or option, I get a page > > error:http://dpaste.com/41249/ > > > urls.pyhttp://dpaste.com/41250/ > > The admin entry should just be ^admin/ without the ending

Re: SQL woes

2008-03-25 Thread Karen Tracey
On Tue, Mar 25, 2008 at 2:01 PM, Jacob <[EMAIL PROTECTED]> wrote: > > That worked nice! > > I read through the page you linked and cannot find, is there a more > clean way of doing this? > > So if I basically need the tables rebuilt, but I want to retain the > records, is there a command? >

Re: MySQL-python-1.2.2 errors

2008-03-25 Thread Karen Tracey
On Tue, Mar 25, 2008 at 5:09 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > So, even though my CPU architecture is 64-bit I should install the 32- > bit version of MySQL? > Depends on the Python you are building with. They need to match. Alternatively perhaps the commenting-out of the

Re: MySQL-python-1.2.2 errors

2008-03-25 Thread [EMAIL PROTECTED]
So, even though my CPU architecture is 64-bit I should install the 32- bit version of MySQL? On Mar 25, 8:04 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Mar 25, 2008 at 3:49 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > > > Hello, > > > I'm trying to build

Re: Beej's Flickr API

2008-03-25 Thread Michael
Beej's Flickr API works great too. Check out django-syncr it has a wrapper class that works well. http://code.google.com/p/django-syncr/ On Tue, Mar 25, 2008 at 4:33 PM, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > > Michael J a écrit : > > > Has anyone attempted to implement Beej's Flickr

Re: Beej's Flickr API

2008-03-25 Thread Nicolas Steinmetz
Michael J a écrit : > Has anyone attempted to implement Beej's Flickr API with Django? Personnaly, I use Flick.py [1] which works like a charm :) [1] --~--~-~--~~~---~--~~ You received this message because you are subscribed

Beej's Flickr API

2008-03-25 Thread Michael J
Has anyone attempted to implement Beej's Flickr API with Django? I'm stuck at the spot of authentication where (in the example) the code waits for the user to authenticate the application on Flickr before proceeding: if not token: raw_input("Press ENTER after you authorized this program")

Re: Can the django admin site be exposed to the outside?

2008-03-25 Thread Rajesh Dhawan
On Mar 25, 3:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > As long as your webserver is exposed to the outside world sure, if you > are using the dev server(which it sounds like you are), instead of > binding to localhost, bind the server to your remote(or local ip), or > you can bind

Re: Admin not working after media is used for CSS

2008-03-25 Thread Rajesh Dhawan
Hi, > > But, if I click on any one given table and/or option, I get a page > error:http://dpaste.com/41249/ > > urls.pyhttp://dpaste.com/41250/ The admin entry should just be ^admin/ without the ending $. In other words: (r'^admin/', include('django.contrib.admin.urls')), instead of

Re: How often do you update your django?

2008-03-25 Thread [EMAIL PROTECTED]
cd into the directory where you have django, then do svn update, it will update the checkout there. To be able to this you can not have used setup.py instead you should be symlinking django/ into your site- packages directory. On Mar 25, 2:31 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > How do

Re: Can the django admin site be exposed to the outside?

2008-03-25 Thread [EMAIL PROTECTED]
As long as your webserver is exposed to the outside world sure, if you are using the dev server(which it sounds like you are), instead of binding to localhost, bind the server to your remote(or local ip), or you can bind it to 0.0.0.0 to have it accept requests at any address it is accesible

Re: Template rendering Spanish accent characters

2008-03-25 Thread Francisco Benavides
Hi, I added as per the suggestion, got this problem solved :) Will add this to all the needed source files. constants.py http://dpaste.com/41257/ Thank you! On Mar 25, 1:27 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-03-25 at 12:09 -0700, Francisco Benavides wrote: > >

Re: How often do you update your django?

2008-03-25 Thread jmDesktop
How do you do this? I tried and just ended up with svn co http://and got my latest copy .97. I then deleted the old directory django and copied the new one. I thought I could do svn up somehow, but couldn't figure it out. On Mar 25, 3:09 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

Can the django admin site be exposed to the outside?

2008-03-25 Thread jmDesktop
Just learning, but I have the admin site running. I wanted to know if I can get to the admin site from another computer instead of only localhost. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Template rendering Spanish accent characters

2008-03-25 Thread Malcolm Tredinnick
On Tue, 2008-03-25 at 12:09 -0700, Francisco Benavides wrote: > Hi, > > I have the following code, when rendering in django, we get an error: > > constants.py > http://dpaste.com/41245/ > > Django debug data: > http://dpaste.com/41246/ > > How can the "ú" character be correctly rendered in

Admin not working after media is used for CSS

2008-03-25 Thread Francisco Benavides
Hi, I am using the development server, and have made adjustments to allow the use of /media images in order to be able to use CSS. Nos that the page renders OK with the use of CSS through media, when I enter into / admin I get the choice of tables that can be handled. But, if I click on any one

Re: How often do you update your django?

2008-03-25 Thread [EMAIL PROTECTED]
I update pretty much daily locally, I'm going to be deploying a site pretty soon and I doubt that I will update it ever except for security released, qs-rf, and nfa merges, and of course if I need to update the site with a new feature. On Mar 25, 1:04 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote:

Template rendering Spanish accent characters

2008-03-25 Thread Francisco Benavides
Hi, I have the following code, when rendering in django, we get an error: constants.py http://dpaste.com/41245/ Django debug data: http://dpaste.com/41246/ How can the "ú" character be correctly rendered in the templates? Thank you. --~--~-~--~~~---~--~~ You

Re: ImportError: No module named urls

2008-03-25 Thread Evert Rol
> I am just starting out with django (and python). I have already worked > through the tutorial successfully; now I am going through it again > adapting the examples to suit the web app I want to build (a local > book sharing scheme). What I have done so far is to define the models, > create the

Re: doubts about query (fixed)

2008-03-25 Thread Malcolm Tredinnick
On Tue, 2008-03-25 at 14:26 -0400, Vladimir Sanjinez wrote: > Hi, I am new in this django, but I have already tried a few examples > I found on the web, but I have some doubts and queries: > > Given the following classes: > > Book class (models.Model): > author =models.ForeignKey(Author) >

Re: Genericized pre/post-request processing in Controller?(View?)

2008-03-25 Thread Malcolm Tredinnick
On Tue, 2008-03-25 at 14:04 -0400, Chris Czub wrote: > Here's a question that is probably divisive - why did Django decide to > go with Model/Template/View instead of Model/View/Controller? MVC just > conceptually makes so much more sense to me. Apart from the fact that you can't do MVC for

doubts about query (fixed)

2008-03-25 Thread Vladimir Sanjinez
Hi, I am new in this django, but I have already tried a few examples I found on the web, but I have some doubts and queries: Given the following classes: Book class (models.Model): author =models.ForeignKey(Author) publisher = models.ForeignKey(Editor) Publication = models.DateTimeField ()

doubts about query

2008-03-25 Thread Vladimir Sanjinez
Hi, I am new in this django, but I have already tried a few examples I found on the web, but I have some doubts and queries: Given the following classes: Book class (models.Model): Models.ForeignKey author = (Author) Models.ForeignKey publisher = (Editor) Publicaction =

Genericized pre/post-request processing in Controller?(View?)

2008-03-25 Thread Chris Czub
Here's a question that is probably divisive - why did Django decide to go with Model/Template/View instead of Model/View/Controller? MVC just conceptually makes so much more sense to me. Anyhow, that's not the primary point of this posting... Is there any way to implement some sort of pre and/or

customize forms

2008-03-25 Thread Rocio Figueroa
Hello friends of the list, and I started to do some testing Newforms. I tried to generate forms from the model automatically and Also customizing forms manually (by specifying Characteristics of each field). Now my query is as follows: in a form that is Manually (by specifying fields and

ImportError: No module named urls

2008-03-25 Thread andy baxter
hello, I am just starting out with django (and python). I have already worked through the tutorial successfully; now I am going through it again adapting the examples to suit the web app I want to build (a local book sharing scheme). What I have done so far is to define the models, create the

Re: How often do you update your django?

2008-03-25 Thread Joseph Heck
Justin does have a very valid point here - there's a LOT of functionality that isn't in the 0.96.1 release, and there's no word on when a next release will be coming. Just make sure you keep up with changes in the trunk when the developers get into making backwards incompatible updates. -joe On

Re: SQL woes

2008-03-25 Thread Jacob
That worked nice! I read through the page you linked and cannot find, is there a more clean way of doing this? So if I basically need the tables rebuilt, but I want to retain the records, is there a command? On Mar 25, 10:13 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Mar 25, 2008

Django ad server?

2008-03-25 Thread Josh
Are there any Django-based ad server solutions out there? If not, should there be any problems with using OpenX (formerly OpenAds) with a Django site? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Django-UML Generator

2008-03-25 Thread Chris
Thanks for your responses. Thanks Malcolm that helped alot. On Mar 25, 1:43 pm, "Justin Lilly" <[EMAIL PROTECTED]> wrote: > You expect to hand a non-technical client something that looks like: > > http://blog.riff.org/files/Project8.png > > ?? I thing that would go poorly. Besides, pencil +

Re: Django with SQL Server

2008-03-25 Thread kellygreer1
I realize this is a Django group but... where do other Python web app frameworks like Pylons and TurboGears stack up as far as MS SQL Server support goes? I'll post back to the group my experiences of trying to swap out the backend. I'm a newb and swamped at work right now. So this may take me

Filter ManyToMany options by Site in adming interface

2008-03-25 Thread Josh
I'm working on a multi-site project, so most models have a site field. One particular model, locations, has a site field as well as a many-to- many relationship with the neighborhood model which also has a site field. What I want is that when editing a location object the neighborhoods that show

Re: Django-UML Generator

2008-03-25 Thread Justin Lilly
You expect to hand a non-technical client something that looks like: http://blog.riff.org/files/Project8.png ?? I thing that would go poorly. Besides, pencil + paper goes a long way in client discussions like that. -justin On Tue, Mar 25, 2008 at 1:22 PM, Chris <[EMAIL PROTECTED]> wrote: > >

Re: Django-UML Generator

2008-03-25 Thread Malcolm Tredinnick
On Tue, 2008-03-25 at 10:22 -0700, Chris wrote: > So I had this idea and was looking for some thoughts on this: > When starting a new website, normally a client gives you a handful of > documents > on what he/she wants. Most of the time this person is technically > illiterate so > interpreting

Re: How often do you update your django?

2008-03-25 Thread Justin Lilly
I would suggest the exact opposite, really. I found it much harder in terms of documentation / help with .96 than trunk. Besides, hearing "Oh. You're on .96? You don't have that feature." can get a bit tiresome. In terms of updating, its (for me) as easy as going to the directory and running

Re: Anyone have problems with Safari 3.1 or Firefox?

2008-03-25 Thread jmDesktop
nevermind. sorry. I was using for .97 and didn't see the link. I'll try that version. On Mar 25, 1:28 pm, jmDesktop <[EMAIL PROTECTED]> wrote: > For example, using .96, following the tutorial 02, I tried to use the > collapse class but in safari and firefox the (show) link never shows > up.  

Anyone have problems with Safari 3.1 or Firefox?

2008-03-25 Thread jmDesktop
For example, using .96, following the tutorial 02, I tried to use the collapse class but in safari and firefox the (show) link never shows up. Also, the date and now widgets are never displayed. Is it because I am using .96? I'm on mac os x if it matters.

Re: Django with SQL Server

2008-03-25 Thread Adam V.
> Should I go ahead and swap the backend code out for of these backends? The fact that I created a separate project basically speaks to my suggestion (swap out.) [I would kind of prefer if MS SQL support was dropped entirely from django-svn (unless the upcoming foundation is going to spend some

Re: How often do you update your django?

2008-03-25 Thread Joseph Heck
It's more than a file - it's more like a directory :-) If you're new to django, you might find it a lot easier to start with the release version. The trunk has been reasonably stable lately, but there's no promise that it will remain so - and you might find yourself in a bind if you loose track

Re: How often do you update your django?

2008-03-25 Thread jmDesktop
Do you just copy over the old file and restart your server? On Mar 25, 12:58 pm, "Justin Lilly" <[EMAIL PROTECTED]> wrote: > I update it every time I'm reminded of it (I just updated), at the end of a > sprint or when I get errors (in hopes it was a bug that was fixed). > >  -justin > > On Tue,

Django-UML Generator

2008-03-25 Thread Chris
So I had this idea and was looking for some thoughts on this: When starting a new website, normally a client gives you a handful of documents on what he/she wants. Most of the time this person is technically illiterate so interpreting what he/she into a django model is often a challenge. i

Re: SQL woes

2008-03-25 Thread Karen Tracey
On Tue, Mar 25, 2008 at 1:01 PM, Jacob <[EMAIL PROTECTED]> wrote: > > Hi, > 1) This is my first time posting, I hope someone can lead me in a > direction of a good django wiki or the like to get this kind of info > from in the future. > > 2) My question is, I have noticed that when I change

Re: Will there be a 0.98 release?

2008-03-25 Thread Francisco Benavides
Hi Justin, Thank you for your answer. Rgs!/Fco On Mar 24, 5:58 pm, "Justin Lilly" <[EMAIL PROTECTED]> wrote: > From PyCon, > They said the reason they aren't releasing .97+ is because of all the > backwards incompatible changes. It would make sense that such large > changesets as there are

Re: Will there be a 0.98 release?

2008-03-25 Thread Francisco Benavides
Hi Michael, Thank you for the feedback, I will post the findings I am getting and let the ball follow due course. Rgs!/Fco On Mar 24, 5:37 pm, Michael <[EMAIL PROTECTED]> wrote: > Hi Francisco; > > By all clues I have heard from the Django devs they are working hard > at getting a full 1.0

SQL woes

2008-03-25 Thread Jacob
Hi, 1) This is my first time posting, I hope someone can lead me in a direction of a good django wiki or the like to get this kind of info from in the future. 2) My question is, I have noticed that when I change things in the models.py of my project, and then run manage.py syncdb, after that I

Re: How often do you update your django?

2008-03-25 Thread Justin Lilly
I update it every time I'm reminded of it (I just updated), at the end of a sprint or when I get errors (in hopes it was a bug that was fixed). -justin On Tue, Mar 25, 2008 at 12:50 PM, jmDesktop <[EMAIL PROTECTED]> wrote: > > How often do you use svn to get the latest django and update your >

ConditionalGetMiddleware appears broken in SVN

2008-03-25 Thread caustic
Hi it seems like ConditionalGetMiddleware is broken. The latest commit (http://code.djangoproject.com/changeset/6662) has changed response.status_code to response.status which causes the problem -- WBR Konstantin --~--~-~--~~~---~--~~ You received this message

IT Shop Center

2008-03-25 Thread mick2
Hi friends. if you wanna looking a mobile [EMAIL PROTECTED] you can search at here.. it will give the best price for you This your URL http://astore.amazon.co.uk/happyfamily-21 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

How often do you update your django?

2008-03-25 Thread jmDesktop
How often do you use svn to get the latest django and update your implementation? I'm new to all of this and never have used cvs or svn and am trying to figure out the best way to use it. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Django with SQL Server

2008-03-25 Thread kellygreer1
I made it pretty far but now have run into this error trying to get the admin interface up. DatabaseError: --ADODBAPI -- Trying parameter 0 = '25354001e197c91af0f7fa63ab4b720d' Traceback (most recent call last): File "C:\Python25\Lib\site-packages\adodbapi\adodbapi.py", line 618, in

Re: TemplateSyntaxError at /admin/sites/site/ Trying to use Tutorial 02 .96 and svn problems

2008-03-25 Thread jmDesktop
I found the poster at the devshed article is only partially right. It is those directories that are missing, but you need them from the .96 version. I found them here: http://code.djangoproject.com/browser/django/branches/0.96-bugfixes/django/contrib/admin On Mar 25, 10:53 am, jmDesktop

Re: unit testing Q

2008-03-25 Thread Joseph Heck
Absolutely - the "making a seperate DB" is all wrapped in "django-admin.py test" or "./manage.py test" - which does a number of things for you. You don't have to use that at all - and just running standard python unit tests will work against your system. You'll need to set up your environment to

Re: Showing day in html but cannot check the day on django

2008-03-25 Thread Joseph Heck
Python has a number of good date/time packages that you can use to do this... why don't you look into one of those. -joe On Tue, Mar 25, 2008 at 12:53 AM, soe <[EMAIL PROTECTED]> wrote: > > Hi all, > I would like to check the current day on the django not on html, mean > today is monday or

Howto execute custom SQL from the command line

2008-03-25 Thread Tourneur Henry-Nicolas
Hello, At the installation stage of the software (Django bases, of course) I'm developing, I have to insert data in a database. Is there any easy way to tell django to execute the SQL directives contained in a .sql file ? I tried using manage.py but I don't know the good options. So I would

Re: Django with SQL Server

2008-03-25 Thread Adam V.
Not only is Django's pack-in MS Sql backend broken, but the last set of updates to adodbapi-2.1 to add IronPython support actually broke standard Win32/COM support in some areas. There are some now externally maintained SQL Server backends for (trunk) Django: *

Re: IDE

2008-03-25 Thread luis cota
I used to use Eclipse + PyDev - good setup, though extremely bloated. Now I use Komodo Edit (OpenKomodo) for my python coding. Good autocomplete support, much lighter than Eclipse and cleaner UI. Good luck, - Luis On Tue, Mar 25, 2008 at 11:26 AM, meppum <[EMAIL PROTECTED]> wrote: > > I

Re: How to use a Queryset from one model to filter the Queryset from another model

2008-03-25 Thread davenaff
Alex, Good thought. Not as crisp as I would like, but it should do the trick. Thanks, Dave On Mar 24, 6:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > How about recent_authors = Author.object.filter(book__pk__in=[b.pk for > b in recent_books]).distinct() > > That can probably be done

Re: MySQL-python-1.2.2 errors

2008-03-25 Thread Mike H
I had the same problem just this morning. Commenting out #ifndef uint #define uint unsigned int #endif from _mysql.c fixed it for me, and all the django tests pass with a mysql backend afterwards, so I should be safe :) Cheers, Mike On 25 Mar 2008, at 15:04, Karen Tracey wrote: > On Tue,

notmm-0.2.10p1 released to the wild...

2008-03-25 Thread Etienne Robillard
Greetings, I'm pleased to announce the release of notmm-0.2.10p1, a Paste-based web toolkit on top of Django. This release fix a fair amount of bugs while offering new features like contextual session support (SQLAlchemy) and improved generic views support. The source distribution tarball

Re: MySQL-python-1.2.2 errors

2008-03-25 Thread Karen Tracey
On Tue, Mar 25, 2008 at 3:49 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm trying to build MySQL-python-1.2.2 and I don't understand how to > fix these errors: > > running build > running build_py > copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb >

TemplateSyntaxError at /admin/sites/site/ Trying to use Tutorial 02 .96 and svn problems

2008-03-25 Thread jmDesktop
Hi, trying to learn Django and I am following everything in the tutorial. However, when originally I tried to load the admin site I got an templatedoesnotexist error. I followed this: http://forums.devshed.com/showpost.php?p=1856484=2 got the svn for post .96 and put in the admin templates

unit testing Q

2008-03-25 Thread Jeff Gentry
Hi there ... As a relative newcomer to Django, I recently starting looking at how best to implement unit tests for my app. I came across this page: http://www.djangoproject.com/documentation/testing/ as well as a couple of other examples online. If I'm understanding things correctly, the unit

Re: Extending existing models (specifically Photologue)

2008-03-25 Thread Malcolm Tredinnick
On Tue, 2008-03-25 at 07:18 -0700, Oni wrote: > Hello there. I get the impression, after reading the Auth / User stuff > that comes with Django, extending models is not the best way of adding > functionality. I've been using photologue for my e-commerce project. > I'd like to extend Photo and

Re: Django with SQL Server

2008-03-25 Thread Michael
Bad link, obviously ... http://jjinux.blogspot.com/2008/03/pycon-ironpython-road-ahead.html On Mar 25, 8:19 am, Michael <[EMAIL PROTECTED]> wrote: > Hope this keeps working for you. For what it's worth, I couldn't get > SQLServer to work with Django a while back ... though our using >

Re: Django with SQL Server

2008-03-25 Thread Michael
Hope this keeps working for you. For what it's worth, I couldn't get SQLServer to work with Django a while back ... though our using SQLServer 2000 might be a big part of that. However, I was reading some PyCon blogs and came across a http://jjinux.blogspot.com/2008/03/pycon-ironpython-road-

Extending existing models (specifically Photologue)

2008-03-25 Thread Oni
Hello there. I get the impression, after reading the Auth / User stuff that comes with Django, extending models is not the best way of adding functionality. I've been using photologue for my e-commerce project. I'd like to extend Photo and Gallery but I seem to be hitting a lot of errors here and

Re: Saving Posted form data to database

2008-03-25 Thread Evert Rol
> I am having a bit of trouble posting checked items from a form to my > view so I can save it to a database table. > The data in the form are information that has been stripped from a > file so there is no database link/referencing there. > > What I have done half works as it does post my

Re: IntegrityError on unique_together constraint, save() use INSERT instead of UPDATE

2008-03-25 Thread Malcolm Tredinnick
On Tue, 2008-03-25 at 06:24 -0700, sector119 wrote: > My models has primary key it's 'id' field and this field is > prepopulated in Person.save() method > > def _get_id(self): > return int(str(self.pid)+str(self.location.id)) > > def save(self, raw=False): > self.id =

Re: IntegrityError on unique_together constraint, save() use INSERT instead of UPDATE

2008-03-25 Thread sector119
My models has primary key it's 'id' field and this field is prepopulated in Person.save() method def _get_id(self): return int(str(self.pid)+str(self.location.id)) def save(self, raw=False): self.id = self._get_id() super(Person, self).save(raw=raw) But in:

Re: IntegrityError on unique_together constraint, save() use INSERT instead of UPDATE

2008-03-25 Thread Malcolm Tredinnick
On Tue, 2008-03-25 at 05:51 -0700, sector119 wrote: [...] > I try to write my own comand to manage.py which imports data in some > format to the db. > I write my own serializer which yields > base.DeserializedObject(self.model(**data), m2m_data). > > When I run deserlialized object save method

Saving Posted form data to database

2008-03-25 Thread Mr T
I am having a bit of trouble posting checked items from a form to my view so I can save it to a database table. The data in the form are information that has been stripped from a file so there is no database link/referencing there. What I have done half works as it does post my selected items

ManyToManyField: Error in Admin Interface

2008-03-25 Thread tom
Hi, I try to add some data through the Admin interface but I get an SQL Error when I try to add a ManyToMany Relation. The model: class Artist(models.Model): name = models.CharField(max_length=200, blank=True) abstract = models.TextField(blank=True, help_text=_('Give a short

did u know the money making secrets.............

2008-03-25 Thread jo
did u know the money making secrets. google groups brings u these oppertunity .. u submit a project to google groups then u get $4 per project work.. do u want to join dis work visit our site www.jobsforyouguys.blogspot.com

IntegrityError on unique_together constraint, save() use INSERT instead of UPDATE

2008-03-25 Thread sector119
Traceback (most recent call last): File "/home/sector119/devel/eps_src/eps/apps/imports/management/ commands/importdata.py", line 144, in import_source obj.save() File "/home/sector119/devel/django_src/django/core/serializers/ base.py", line 168, in save models.Model.save(self.object,

Re: MySQL-python-1.2.2 errors

2008-03-25 Thread Evert Rol
You might be better off asking here: https://sourceforge.net/forum/forum.php?forum_id=70461 > I'm trying to build MySQL-python-1.2.2 and I don't understand how to > fix these errors: > > running build > running build_py > copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb >

Re: Automatic Module Discovery (More to python than to django)

2008-03-25 Thread Chris Hoeppner
Right this one saved me, Christian =) Thanks a bunch-o-lot! ~ Chris El lun, 24-03-2008 a las 14:50 +0100, Christian Vest Hansen escribió: > For just running another python script from within python, there's a > number of options: > + the exec statement: >>> help('exec') > + the execfile()

This video is exactly why WE LOVE porn.

2008-03-25 Thread ais
Hot World -- XXX *** http://myprofile96321.blogspot.com/ http://xbeautyx.notlong.com/ http://vorld2x.notlong.com/ *** --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Sex Videos and Sluts with Big Breasts

2008-03-25 Thread ais
Hot World -- XXX *** http://myprofile96321.blogspot.com/ http://xbeautyx.notlong.com/ http://vorld2x.notlong.com/ *** --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Hot World -- XXX

2008-03-25 Thread ais
Hot World -- XXX *** http://myprofile96321.blogspot.com/ http://xbeautyx.notlong.com/ http://vorld2x.notlong.com/ *** --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

  1   2   >