Re: Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
Alright. I tried looking in the actual source for any mention of password_md5... and it no longer exists. So I'm sure I just can't call the field. I'd have to recreate it or something correct? --~--~-~--~~~---~--~~ You received this message because you are

Edit inline problems

2007-06-27 Thread Patrick Anderson
Hi! It's been a while since I posted to this list, but I have a little problem and would like to ask for some help. I have the following 2 models: class Personnel(models.Model): report = models.ForeignKey(Report, unique = True) class Admin: pass def

Re: Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
> The usual route I go with when trying to extend on the User model is > to create a new model and link it to the User model. For example: > > class UserExt(models.Model): > user = models.ForeignKey(User) > # ... other fields that you need here > > def __init__(self, user): >

Re: pydoc problem

2007-06-27 Thread James Bennett
On 6/27/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Looks like this is the default result for Model subclasses. Possibly > related to the way we create them (using a metaclass). Feel free to work > out a patch in django/db/models/base.py (in the ModelBase class, > probably) if you want to

Re: pydoc problem

2007-06-27 Thread Malcolm Tredinnick
On Wed, 2007-06-27 at 18:58 -0700, dailer wrote: > I have a models.py module that I thought I would test pydoc on. So I > try. > > > $ python manage.py shell > Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit > (Intel)] on win32 > Type "help", "copyright", "credits" or

Re: Newforms Attribute Errors

2007-06-27 Thread Malcolm Tredinnick
On Wed, 2007-06-27 at 12:05 -0700, robo wrote: [...] > -- > But even using custom forms I get errors: > > AttributeError at /vendor/Chef/1/ > 'lineItemPrice' object has no attribute 'save' > Request Method: POST > Request URL: http://192.168.1.104:8000/vendor/Chef/1/ > Exception

Re: multiple databases

2007-06-27 Thread benf
Hi Guys, I'm in the middle of the latest set of updates (the merge of the oracle branch with trunk), the only thing left to do is sort out the core.management module (68 conflicts!!). I should have that cracked by the end of today and it would be great to get it checked in so others could help

Re: lightTPD, local ref to static files

2007-06-27 Thread [EMAIL PROTECTED]
> Sorry, I don't know about fcgi configuration or url.rewrite-once. You can find docs about em here. http://www.djangoproject.com/documentation/fastcgi/ In my understanding, the Apache configuration would have the same problem. The issue is templates not being in the web root. Ivan On Jun 27,

Re: django.contrib.auth: 'module' object has no attribute 'get_max_name_length'

2007-06-27 Thread Russell Keith-Magee
On 6/28/07, Ramiro Morales <[EMAIL PROTECTED]> wrote: > > It isn't a big problem, it will go away when you set DATABASE_NAME variable > in settings.py (the next step) and it will eventually be solved so the > behavior > matches the documentation again. FYI - I've fixed this in [5557]. Yours,

Re: nested function

2007-06-27 Thread dailer
errr. i didn't do too well with my first post. Actually, my model validation calls startDate_EndDate_CrossValidation just find via a validator_list. The problem is I'm trying to write a tester and don't know how to call startDate_EndDate_CrossValidation and get field_data and all_data passed in.

Re: nested function

2007-06-27 Thread dailer
errr. i didn't do too well with my first post. Actually, my model validation calls startDate_EndDate_CrossValidation just find via a validator_list. The problem is I'm trying to write a tester and don't know how to call startDate_EndDate_CrossValidation and get field_data and all_data passed in.

Re: test client login problems

2007-06-27 Thread Russell Keith-Magee
On 6/28/07, Chris Brand <[EMAIL PROTECTED]> wrote: > > > The 'bool object has no attribute status_code' message is generated > > because the login() method visits the named url, and tries to fill in > > the form it finds. If you are already logged in, and you visit a > > login-decorated view, the

Re: Password Logistics Help Needed

2007-06-27 Thread Nimrod A. Abing
On 6/27/07, Bryan Veloso <[EMAIL PROTECTED]> wrote: > At the moment, the game can only read md5 or plain-text passwords, and > I know that Django has the hash$salt$hash (or something. :P) way of > doing it. So I can't just copy the password from the User model to the > account table since the

pydoc problem

2007-06-27 Thread dailer
I have a models.py module that I thought I would test pydoc on. So I try. $ python manage.py shell Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from

Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread James Bennett
On 6/27/07, leif strickland <[EMAIL PROTECTED]> wrote: > After some digging around, it looks like the newforms-admin branch > does not allow widget declarations within the model class itself. Yeah. As you've discovered, one of the big points of newforms-admin is to get as much stuff as possible

Re: freecomments not displayed II

2007-06-27 Thread emer77
Solved! I didn't know what was the problem, but when I cleaned up the whole project and tables (with startproject, startapp, syncdb) and copied again the code, it worked! On 27 jun, 12:00, emer77 <[EMAIL PROTECTED]> wrote: > (sorry for the bad english) > > I'm with the same problem of this

Re: django.contrib.auth: 'module' object has no attribute 'get_max_name_length'

2007-06-27 Thread BigBaaadBob
> Which DATABASE_BACKEND are you using? Are you running trunk, and if > so, what revision? I'm using MYSQL and trunk revision . As Ramiro said, it went away when I set the DATABASE_NAME, so I'm all set. Thanks! --~--~-~--~~~---~--~~ You received this

Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread leif strickland
After some digging around, it looks like the newforms-admin branch does not allow widget declarations within the model class itself. However, adding a custom widget is quite easy. In the branch, almost all of the admin app functionality has been moved out of the inner Admin class and into a

Re: admin forms lose javascript with mod_python

2007-06-27 Thread Eric St-Jean
Graham Dumpleton a écrit : > Do what has been suggested with using something like live http > headers, but in particular pay close attention to the Content-Type > header being returned for static files served from your /media > directory. When using Apache the content types for such files will be

Re: Newforms Attribute Errors

2007-06-27 Thread robo
In python shell I typed: >> from gfs_chefrevival.shop.forms import OrderDetailForm >> from django import newforms as forms >> f = OrderDetailForm() >> f.is_bound I get the error: Traceback (most recent call last): File "", line 1, in ? AttributeError: 'lineItemPrice' object has no attribute

Re: lightTPD, local ref to static files

2007-06-27 Thread Jeremy Dunck
On 6/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a lightTPD setup. Assume my django project is foo located at / > home/foo, the document root is in /home/foo/public_html, and the > django templates are in /home/foo/templates. > > I've configured lightTPD as follows: >

Re: django.contrib.auth.views

2007-06-27 Thread Jeremy Dunck
On 6/27/07, rycole <[EMAIL PROTECTED]> wrote: > Or, will these views stay backwards compatible through > future versions? These views provided by auth are exactly what I need, > but I don't want to use them if I will need to change stuff later. Any > ideas? I'm pretty sure they'll be updated to

nested function

2007-06-27 Thread dailer
I created a validator for use in a validator_list in the admin interface like so... def startDate_EndDate_CrossValidation(modelName): def result(field_data, all_data): being new to python, I stole this from an example somewhere. I have these 3 attributes, but how do I call

admin and .FileField()

2007-06-27 Thread Carl Karsten
Took me a bit to get .FileField() working in the admin, and im wondering if it needs to be as complicated as it seems. I think it currently violates DRY, and maybe that was intentional for 'security' or 'performance' reasons, or maybe it was just an oversight. I did the following, and got

Re: Announcing the birth of Fluther.com

2007-06-27 Thread leif strickland
Looks great. Good work! For those of us still stuck in alpha, can you share a bit about your implementation? Are you using Apache? Squid? What's your approach to caching? Did you use Django's built-in User model for your registered site users? What DB did you opt for? Any information would be

fyi

2007-06-27 Thread [EMAIL PROTECTED]
http://www.oreillynet.com/onlamp/blog/2007/06/python_web_application_framewo.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Zip code lookup field

2007-06-27 Thread leif strickland
I figured it out! The problem was that my custom zip code field's clean() function was returning the profile object's *id*, not the actual zip code instance. > zip_code_id = Postal_Code.objects.get(postal_code=value).id > return int(zip_code_id) As it turns out, the function should have

Re: Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
Alright, I did about 2 hours of searching today and I'm beginning to think that the above is an impossibility. Which probably means that I'm going to have to bypass Django authentication and make my own, but I don't even know where to start on that, so I'm at quite a loss. :/

Re: Best way to link to other pages in templates

2007-06-27 Thread Ryan K
Anyway I'd also like to add that having built my first real application with Django I'm awestruck at how easy it is to use. I spent more time picking colors that looked good together than I did coding site logic. On top of that, the source of the package is easy to read and which makes up for the

lightTPD, local ref to static files

2007-06-27 Thread [EMAIL PROTECTED]
Hi, I have a lightTPD setup. Assume my django project is foo located at / home/foo, the document root is in /home/foo/public_html, and the django templates are in /home/foo/templates. I've configured lightTPD as follows: === fastcgi.server = (

Re: Announcing the birth of Fluther.com

2007-06-27 Thread Michael Trier
Very well done. Michael On 6/27/07, Andrew <[EMAIL PROTECTED]> wrote: > > Hello Fellow Djangoers! > > After many late-night IRC sessions and countless visits to the django > docs, we're very proud to announce the launch of Fluther.com, our > Django-powered social Q site. > > Yes, it's similar

Re: gettatr() access to ManyToMany huuuge delay?

2007-06-27 Thread l5x
On Jun 27, 11:32 pm, grassoalvaro <[EMAIL PROTECTED]> wrote: > Here some code: > - > class TestField(models.Model): > name = models.TextField() > text = models.ManyToManyField(TextOption) > class Meta: >

ManyToManyField: help_text missing when using filter_interface

2007-06-27 Thread Carlos Hanson
Greetings, When I use a filter_interface for ManyToManyFields that have help_text set, the help does not show up in the admin interface. I have started to dig into the Javascript that makes the change for the select box, but hopefully someone can identify the problem more quickly than I. The

Announcing the birth of Fluther.com

2007-06-27 Thread Andrew
Hello Fellow Djangoers! After many late-night IRC sessions and countless visits to the django docs, we're very proud to announce the launch of Fluther.com, our Django-powered social Q site. Yes, it's similar to Yahoo Answers or AskMeFi, but with some new twists like real-time discussion,

Re: Zip code lookup field

2007-06-27 Thread leif strickland
Here's a bit of the testing I have run in the shell... >>> from mysite2.profile.models import Profile >>> from django import newforms >>> from mysite2.admin import ProfileOptions >>> # instantiate a Profile object >>> test_profile = Profile.objects.get(id=1) >>> # instantiate the adminoptions

Re: Zip code lookup field

2007-06-27 Thread leif strickland
Here's a bit of the testing I have run in the shell... >>> from mysite2.profile.models import Profile >>> from django import newformms >>> from mysite2.admin import ProfileOptions >>> >>> # instantiate a Profile object >>> test_profile = Profile.objects.get(id=1) >>> >>> # instantiate the

RE: Method to find the admin url for an object

2007-06-27 Thread Chris Brand
> If you're wanting it for actual inclusion, there's also the edge case > of whether the model's been saved. If not PK is None, and the URL > will be mal-formed. > > I dunno what to do for that corner case. I guess it might make sense to return the "add" url instead, although that makes it

Re: Best way to link to other pages in templates

2007-06-27 Thread Ryan K
Right but I'm using the Django server included with the package for development and Apache for another. So the root of my test server is / mydjangosite, but for my deployment server its /~ryan/...etc..etc I just put a LINK_PREFIX string in the top settings module and a wrapper function like

Re: Method to find the admin url for an object

2007-06-27 Thread Jeremy Dunck
On 6/27/07, Chris Brand <[EMAIL PROTECTED]> wrote: ... > Hmmm. Nice, except that it hardcodes the base url of the admin, which leads > me to this : If you're wanting it for actual inclusion, there's also the edge case of whether the model's been saved. If not PK is None, and the URL will be

RE: Method to find the admin url for an object

2007-06-27 Thread Chris Brand
> Small tweak to support models which don't use AutoField for primary_key. > > def get_admin_url(self): >pk = getattr(self, self._meta.pk.attname) >return "/admin/%s/%s/%s/" % ( > self._meta.app_label, > self._meta.module_name, > pk) Hmmm. Nice, except that it

django.contrib.auth.views

2007-06-27 Thread rycole
I'm beginning a site with Django, and am starting with the fundamental elements of the site first. I figured I'd get the user login / registration working before I do anything. Should I still use django.contrib.auth.views for login, logout, etc, even though they use oldforms? Or, will these views

Re: Zip code lookup field

2007-06-27 Thread leif strickland
Yes, the ModelAdmin is registered with django.contrib.admin.site. And the change and add pages for the model are displaying correctly. It even provides the expected error message if I enter an invalid Zip code. But when I enter a correct Zip code and Save, it gives me an Integrity Error:

Re: Zip code lookup field

2007-06-27 Thread leif strickland
Yes, the ModelAdmin is registered with django.contrib.admin.site. And the change and add pages for the model are displaying correctly. It even provides the expected error message if I enter an invalid Zip code. But when I enter a correct Zip code and Save, it gives me an Integrity Error:

Re: Method to find the admin url for an object

2007-06-27 Thread Jeremy Dunck
On 6/27/07, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > > def get_admin_url(self): > return "%s/%s/%s/%s/" % ("/admin", self._meta.app_label, Small tweak to support models which don't use AutoField for primary_key. def get_admin_url(self): pk = getattr(self,

Re: Best way to link to other pages in templates

2007-06-27 Thread [EMAIL PROTECTED]
I just make them all come from the root. Works no matter where it's deployed: Instead of "http://example.com/mydjangosite/manage/manage; I would just do "/mydjangosite/manage/manage" On Jun 27, 2:41 pm, Ryan K <[EMAIL PROTECTED]> wrote: > What if I am using generic views? > > On Jun 27, 3:26 pm,

Re: Zip code lookup field

2007-06-27 Thread Jeremy Dunck
On 6/27/07, leif strickland <[EMAIL PROTECTED]> wrote: ... > zip_code_id = > Postal_Code.objects.get(postal_code=value).id Is Postal_Code.postal_code a string or numeric? ... > try: > zip_code = Postal_Code.objects.get(id = >

Re: Problem with URL

2007-06-27 Thread robo
Yes, Alberto is right. Also, I ran into this problem a few days ago. Basically, after you write your view processing like Alberto suggested, you need to do a response redirect or HttpResponseRedirect and pass it "." (which is to the same page the user was on). After I did that on my form, the

gettatr() access to ManyToMany huuuge delay?

2007-06-27 Thread grassoalvaro
Here some code: - class TestField(models.Model): name = models.TextField() text = models.ManyToManyField(TextOption) class Meta: db_table = 'test' test = TestField.objects.get() a = time.time() for i in

Re: Method to find the admin url for an object

2007-06-27 Thread Nathaniel Whiteinge
Not sure if this is what you're looking for, or if there's an official way to to this, but I'm using this:: def get_admin_url(self): return "%s/%s/%s/%s/" % ("/admin", self._meta.app_label, self._meta.object_name.lower(), self.id) Stolen from wamber.net. - whiteinge

Re: Zip code lookup field

2007-06-27 Thread leif strickland
OK, I've been tinkering with this all day, and I'm still having one big problem As Jeremy suggested, I created custom ZipCodeField and MyAdmin classes. In addition, I created a custom ZipcodeLookupInput widget. I've tested this in the shell and on the test server, and the clean and render

Re: Zip code lookup field

2007-06-27 Thread leif strickland
OK, I've been tinkering with this all day, and I'm still having one big problem As Jeremy suggested, I created custom ZipCodeField and MyAdmin classes. In addition, I created a custom ZipcodeLookupInput widget. I've tested this in the shell and on the test server, and the clean and render

Re: Re-rendering same page

2007-06-27 Thread Val
Specifically, the boolean values describe certain types of data the user wishes to mask when looking through the database. The values are specific to each user, so there is no reason to DB them. I am storing them in the session variable. The problem is that the variables are not updated

Re: Problem with URL

2007-06-27 Thread Alberto Piai
Hello, On Jun 27, 10:55 am, AnaReis <[EMAIL PROTECTED]> wrote: > Hi, > I'm having a problem here and I don't really know how to solve it. > I have a form on a page, the add user page: > (r'^manager/operations/nlsciadc/users/adduser/$', add_user), #The > template is add_user.html > > When the

Re: Template tag render method never called

2007-06-27 Thread Kevin Tonon
I have determined the source of my problem. It was an inheriting template defining a block and shadowing the parent block in which my tag was called. On Jun 27, 1:44 pm, Kevin Tonon <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using Django 0.91 > > More or less, this is what I'm doing: > >

Re: django.contrib.auth: 'module' object has no attribute 'get_max_name_length'

2007-06-27 Thread Ramiro Morales
On 6/27/07, BigBaaadBob <[EMAIL PROTECTED]> wrote: > > New install and new user, so maybe I'm doing something dumb. I > searched and didn't see anything... > > Following the tutorial I get this when running the development server: > > [EMAIL PROTECTED] ~/DjangoText/demosite $ python manage.py

Re: Best way to link to other pages in templates

2007-06-27 Thread Ryan K
What if I am using generic views? On Jun 27, 3:26 pm, Ryan K <[EMAIL PROTECTED]> wrote: > Perfect. Thanks. > > On Jun 27, 12:40 pm, Thomas Steinacher <[EMAIL PROTECTED]> wrote: > > > Try the {% url %} > > tag:http://www.djangoproject.com/documentation/templates/#url > > > tom > > > On Jun 27,

django.contrib.auth: 'module' object has no attribute 'get_max_name_length'

2007-06-27 Thread BigBaaadBob
New install and new user, so maybe I'm doing something dumb. I searched and didn't see anything... Following the tutorial I get this when running the development server: [EMAIL PROTECTED] ~/DjangoText/demosite $ python manage.py runserver Validating models... django.contrib.auth: 'module'

Re: Re-rendering same page

2007-06-27 Thread Jeremy Dunck
On 6/27/07, Val <[EMAIL PROTECTED]> wrote: > > Specifically, the boolean values describe certain types of data the > user wishes to mask when looking through the database. The values are > specific to each user, so there is no reason to DB them. I am storing > them in the session variable. The

Re: Best way to link to other pages in templates

2007-06-27 Thread Ryan K
Perfect. Thanks. On Jun 27, 12:40 pm, Thomas Steinacher <[EMAIL PROTECTED]> wrote: > Try the {% url %} > tag:http://www.djangoproject.com/documentation/templates/#url > > tom > > On Jun 27, 2007, at 6:33 PM, Ryan K wrote: > > > > > What is the best form of a link in my Django site's templates?

Re: Newforms Attribute Errors

2007-06-27 Thread robo
I've also tried abandoning form_for_model and created my own custom form like so in forms.py: from django import newforms as forms from django.newforms.widgets import * class OrderDetailForm(forms.Form): order = forms.IntegerField() quantity = forms.IntegerField() unitPrice =

Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread James Bennett
On 6/27/07, leif <[EMAIL PROTECTED]> wrote: > Does anyone have information on this topic? I have a feeling I'm not > the only one who's wondering this. Thanks! Your best bet is probably to read the source right now; when the branch is complete there will undoubtedly be documentation showing the

Re: Custom admin field widgets in the newforms-admin branch

2007-06-27 Thread leif
Does anyone have information on this topic? I have a feeling I'm not the only one who's wondering this. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Zip code lookup field

2007-06-27 Thread leif
Great advice -- thanks! I'll work on it today and let you know how it comes together. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Re-rendering same page

2007-06-27 Thread Jeremy Dunck
On 6/27/07, Val <[EMAIL PROTECTED]> wrote: ... >change a boolean > value A boolean value where, in what context, for what purpose? > it > takes multiple refreshes for the value to update itself. There are multiple processes in general-- runserver is one process, but shouldn't be used outside

Re: Zip code lookup field

2007-06-27 Thread Jeremy Dunck
On 6/27/07, leif <[EMAIL PROTECTED]> wrote: ... > Thanks for the input, Jeremy. I've actually decided to use newforms- > admin since I won't be going to production for another few months Sorry for missing that the first time. :) Admin uses django.newforms.models.form_for_model, which takes an

Re-rendering same page

2007-06-27 Thread Val
I am having difficulty with re-rendering the same template. My site is designed with links which, when clicked, will change a boolean value (this is done via a query string), then re-render the page they were clicked from. The problem is that when the page is rendered, it takes multiple

Template tag render method never called

2007-06-27 Thread Kevin Tonon
Hi, I'm using Django 0.91 More or less, this is what I'm doing: appname/templatetags/app_extras.py: from django.core.template import Library, Node register = Library() class MyNode(Node): def __init__(self, foo): self.foo = foo print 'foo' * 100 def render(self,

Method to find the admin url for an object

2007-06-27 Thread Chris Brand
In going through cleaning up all the hard-coded urls in my templates, I'm making good use of the get_absolute_url methods that I've added to my models. Looking at the links I'm left with, they're almost all to the admin pages. How would I write a method to provide a get_admin_change_url method ?

Re: generating customized flyers (pngs or pdf)

2007-06-27 Thread [EMAIL PROTECTED]
Its been a while since I used reportlab but shouldn't he be able to add the image and place some text on top of it without generating a whole image with PIL and then placing it in pdf? Of course that assumes pdf output only and not png. I think the best results would be the reportlab route

RE: test client login problems

2007-06-27 Thread Chris Brand
> > I'm running into problems with the test client's login method. > > Specifically, within a single test method, the first login succeeds but > the > > second one fails. > > Is this something that should work ? Am I doing something wrong ? > > The 'bool object has no attribute status_code'

error: (32, 'Broken pipe'), ThreadLocals & ticket #4444

2007-06-27 Thread sandro dentella
I'm trying to debug a problem for which vanderkerkoff opened ticket http://code.djangoproject.com/ticket/, the fact that under some circumstances the development server prints a tracebak terminating with: error: (32, 'Broken pipe') I noticed that if I add middleware ThreadLocals as per:

Re: Best way to link to other pages in templates

2007-06-27 Thread Thomas Steinacher
Try the {% url %} tag: http://www.djangoproject.com/documentation/templates/#url tom On Jun 27, 2007, at 6:33 PM, Ryan K wrote: > > What is the best form of a link in my Django site's templates? For > example, I have a base.html which serves as the base template for all > others. It contains

Best way to link to other pages in templates

2007-06-27 Thread Ryan K
What is the best form of a link in my Django site's templates? For example, I have a base.html which serves as the base template for all others. It contains links that are relative to the current directory like Manage. However, when I am at a page like

Re: Newforms Attribute Errors

2007-06-27 Thread robo
Hi Malcolm, This is my traceback errors from copy: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 74. response = callback(request, *callback_args, **callback_kwargs) File

Re: use Django's database layer for a regular python program?

2007-06-27 Thread Forest Bond
On Wed, Jun 27, 2007 at 04:53:12PM +0200, Roodie wrote: > > I worked on a console application which uses django to do some > database related tasks. > I started my code with these lines: > > --- > > #!/usr/bin/env python > import sys >

freecomments not displayed II

2007-06-27 Thread emer77
(sorry for the bad english) I'm with the same problem of this (closed) thread: http://groups.google.com/group/django-users/browse_thread/thread/9930f6e624fd8363/f52bc916056d7dbd?lnk=gst=free+comments=1#f52bc916056d7dbd Using django-svn. In two local installations (Mac and Ubuntu), freecomments

Re: use Django's database layer for a regular python program?

2007-06-27 Thread Roodie
I worked on a console application which uses django to do some database related tasks. I started my code with these lines: --- #!/usr/bin/env python import sys sys.path.append('/Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/site-packages/django')

using django.contrib.auth interface

2007-06-27 Thread Henhiskan
Hi fellows, I have doing a custom user authentication, I have my own views to control login and logout, and works great, but now I wish use the authentication views that Django provides. When forms call to login view, Django authenticate user but then redirect to '/account/profile'. Reading the

Re: use Django's database layer for a regular python program?

2007-06-27 Thread Michael K
It's currently being done for a server application, I don't see why it couldn't be used for a desktop application as well? Check out http://www.silverstripesoftware.com/blog/archives/51 and http://code.google.com/p/evennia/ The first is a desktop application that uses Django, I'm just not sure

Re: nasa site on django

2007-06-27 Thread Jeremy Dunck
On 6/27/07, Vance Dubberly <[EMAIL PROTECTED]> wrote: ... > ball of red tape but let's just say django is ALOT more resource intensive > and ALOT slower. Have you done any profiling? I haven't compared such a port, but I'd be surprised if performance is significantly (i.e. one order) different

Change date/datetime input string for admin-interface

2007-06-27 Thread Manuel Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hey, how can I change the string for date/datetime fields in the admin interface? 2007-08-15 should be changed to 15.8.2007 ("d.m.Y H:i") Thanks, Manuel -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (Darwin)

Re: generating customized flyers (pngs or pdf)

2007-06-27 Thread Nis Jørgensen
KpoH skrev: > Hello, > use PIL (http://www.pythonware.com/products/pil/) for this > Note the nice logo in the left sidebar :-) Nis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: generating customized flyers (pngs or pdf)

2007-06-27 Thread KpoH
Hello, use PIL (http://www.pythonware.com/products/pil/) for this ndengler пишет: > hello, > we want to output small flyers that users can print (or could > display). > I had a look at http://www.djangoproject.com/documentation/outputting_pdf/ > which explains how to creat pdfs with templates. >

generating customized flyers (pngs or pdf)

2007-06-27 Thread ndengler
hello, we want to output small flyers that users can print (or could display). I had a look at http://www.djangoproject.com/documentation/outputting_pdf/ which explains how to creat pdfs with templates. How can we also create images? having a personalized text over a background image to be

Re: nasa site on django

2007-06-27 Thread Kai Kuehne
Hi, > Vance Dubberly wrote: > > On the plus side it is faster than a similar PHP app ( with APC ) and > > faster than serving static files. Afaik, dynamic things _can't be_ faster than static things. Kai --~--~-~--~~~---~--~~ You received this message because

Always free - no trial versions or spyware, Ready to use

2007-06-27 Thread shivani
Hi, Your best pictures are now on display. Pick a favorite photo as your desktop picture or add several into your screensaver rotation. What better way to enjoy your photographic genius at your desk? Click Below Now www.chulbul.com/picasa.htm Enjoy this small piece of Software...

use Django's database layer for a regular python program?

2007-06-27 Thread ahlongxp
I'm currently developing a desktop application, not a web application. But I want to use django's models to store and retrieve data in Database. Is it possible? How should I do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
Long story short, I'm building a control panel + backend to an MMORPG. It runs off of a mySQL database, I used inspectdb, and all of that worked perfectly. However, now I have some duplicate data, the User model (since I'm using django-registration) and the account table of the inspected

Re: Plat_Forms web development survey

2007-06-27 Thread willhardy
PS: if you are a member of digg or Slashdot and would like to support the survey, here are the relevant articles: http://digg.com/programming/How_does_your_web_development_platform_rate http://slashdot.org/firehose.pl?op=view=205681 Cheers, Will Hardy Plat_forms survey team

Re: Forms and formating error messages

2007-06-27 Thread Malcolm Tredinnick
On Wed, 2007-06-27 at 02:26 -0700, AnaReis wrote: > Hi again, > This is getting very frustrating because I can't make this work... > This is exactly what I wrote in the files: In future, please remember that when you send a message like this, a lot of us are reading it through an e-mail

Re: Forms and formating error messages

2007-06-27 Thread AnaReis
Hi again, This is getting very frustrating because I can't make this work... This is exactly what I wrote in the files: [newforms.py] from django import newforms as forms from django.newforms.forms import BoundField from django.template import Context, loader class TemplatedForm(forms.Form):

Problem with URL

2007-06-27 Thread AnaReis
Hi, I'm having a problem here and I don't really know how to solve it. I have a form on a page, the add user page: (r'^manager/operations/nlsciadc/users/adduser/$', add_user), #The template is add_user.html When the user presses submit, the action on the form sends the user to: This on my

Re: cx_Oracle deploying problem

2007-06-27 Thread Malcolm Tredinnick
On Wed, 2007-06-27 at 01:34 -0700, audial wrote: > Hello! > > I've developed my project on my desktop machine ( WinXP + Python > 2.4.4. + Oracle Express Edition ). > Now I have a problem with deploying it on the Gentoo Linux 2007.0 > ( Python 2.4.4 + Oracle 10.2.0.1 ) > I don't see ANY russian

cx_Oracle deploying problem

2007-06-27 Thread audial
Hello! I've developed my project on my desktop machine ( WinXP + Python 2.4.4. + Oracle Express Edition ). Now I have a problem with deploying it on the Gentoo Linux 2007.0 ( Python 2.4.4 + Oracle 10.2.0.1 ) I don't see ANY russian chars, there are '?' (question symbols) instead of them =(

Re: nasa site on django

2007-06-27 Thread KpoH
I don't understand. Static files served by django? Vance Dubberly wrote: > Moved http://opensource.arc.nasa.gov to django a couple of weeks ago. > Thought ya'll might want to know that. > > Also thought you might want to know the site was running on > Tomcat/Mysql and the performance difference

Re: Unittests and coverage

2007-06-27 Thread Michal
> The approach here will be to write your own test runner method. When > you call 'manage.py test', Django is effectively calling a method > called django.test.simple.run_tests(); this method sets up the test > environment, finds the tests, runs the tests, and cleans up the test > environment.

nasa site on django

2007-06-27 Thread Vance Dubberly
Moved http://opensource.arc.nasa.gov to django a couple of weeks ago. Thought ya'll might want to know that. Also thought you might want to know the site was running on Tomcat/Mysql and the performance difference is mind blowing. Unfortunately the actual server specs and benchmarks can't be

Re: How can I rename uploaded files to a random filename?

2007-06-27 Thread Vincent Nijs
If you just want to upload some files you might do something like the following. The save function uses plain python to save the files to the FILE_UPLOAD_DIR you defined in your setting file. You can play around with the file names as much as you want here. Question: Why a random name? Vincent

Re: Zip code lookup field

2007-06-27 Thread leif
> Django's existing admin uses oldforms. The newforms-admin branch is > working to rewrite admin to be more flexible and use newforms. If you > need it on trunk now, you'll need to use oldforms. Thanks for the input, Jeremy. I've actually decided to use newforms- admin since I won't be going