Re: Cannot get Django test migrations to detect test models.py

2018-11-05 Thread chris
I am not sure you understood. I am doing testing, and this is a model that is only for tests. I am attempting to achieve the test-only models solution outlined here: https://code.djangoproject.com/ticket/7835#comment:24 Also outlined in the first paragraph of this accepted answer on stack ove

Re: Seeking Ideas for Enhancing Chat Implementation Similar to WhatsApp

2024-08-19 Thread Chris
Lemme know the state of your current implementations/project, I can suggest with tips what can be improved and even some other recent features I found in other chat platforms. On Sun, Aug 18, 2024, 3:29 PM Pandiya rajan wrote: > Hello everyone, I've been working on some of my own projects and

Re: Authenticating static files against Django Auth with FastCGI

2008-10-23 Thread Chris Emerson
giAuthenticator to > authenticate against Django's auth module? I've done this (I'm using lighttpd). I've put my code in some snippets: http://www.djangosnippets.org/snippets/1149/ http://www.djangosnippets.org/snippets/1150/ Hope this helps, Chris --~--~-~--~

django.contrib.auth Password Reset Form

2008-10-24 Thread mccomas . chris
I posted this on the IRC channel and didn't get a definite answer, but I'm trying to use the django.contrib.auth Password Reset Form. Here's the code in the django/contrib/auth/forms.py http://dpaste.com/86595/ In the default templates the template attempts to display the new password by using {

Test failures with SQLite :memory: database - contenttypes, auth and sites

2008-10-25 Thread Chris H.
27;' DATABASE_PASSWORD = '' DATABASE_HOST = '' DATABASE_PORT = '' 6. Run tests, get 3 errors (the rest pass): IntegrityError: django_site.domain may not be NULL IntegrityError: auth_permission.name may not be NULL IntegrityError: djang

Re: Test failures with SQLite :memory: database - contenttypes, auth and sites

2008-10-29 Thread Chris H.
Brian, Thanks for the reply! On Oct 28, 4:57 pm, Brian Gershon <[EMAIL PROTECTED]> wrote: > I just ran into this same issue.  I eventually figured out that adding > TEST_DATABASE_NAME to settings.py (to prevent Django from using the > default memory database for sqlite) works around the issue.

saving multiple versions of an uploaded image

2008-11-04 Thread Chris Amico
Hi folks, I'm trying to turn one uploaded image into several: a full-size and thumbnail (and more, eventually). Here's the model I'm playing with, just for testing: class TestPhoto(models.Model): "This is only for testing. Delete it later and make a real photo model" title = models.CharF

Re: Authenticating static files against Django Auth with FastCGI

2008-11-05 Thread Chris Emerson
.fcgi sripts - one for serving Django pages, and one for the authentication. The only difference is that the authentication one needs to fake up PATH_INFO and configure the WSGIServer to include FCGI_AUTHORIZER. Regards, Chris --~--~-~--~~~---~--~~ You received

Re: saving multiple versions of an uploaded image

2008-11-11 Thread Chris Amico
Trying out sorl.thumbnail now. Looks like it should do just what I need. Django-Photologue is impressive, but I think it's more than I need at the moment. Thanks folks. On Nov 5, 12:02 am, David Christiansen <[EMAIL PROTECTED]> wrote: > It's also worth looking into the sorl.thumbnail library.  T

Re: Problem with named URL and parameters

2008-11-13 Thread Chris Emerson
ate matches [a-zA-Z0-9_] > > but you are trying to match something with dashes in it. > > That isn't the issue. The pattern is [-\w], which will also match > dashes. I'm not sure what is going wrong yet, though, since it looks > like it shou

mod_python setup on Apache virtual host

2008-11-14 Thread Chris Bai
Can anyone point to me a reference to setup mod_python on Apache virtual host for Django? Or write something about it? I am able to run my app in Django development server. I am also able to set up virtual host to display index.html for my website. Now I am ready to move my Django app to productio

Re: Using Admin From a Sub-Directory

2008-11-16 Thread Chris Spencer
will then come out to: > http://localhost/media/admin/css/dashboard.css > > -Jeff > > On Nov 16, 11:37 am, Chris <[EMAIL PROTECTED]> wrote: >> I'm trying to setup my app so it's accessible from a /myapp sub- >> directory. I defined BASEURL = '/myapp

Running multiple sites

2008-11-17 Thread Chris Stromberger
clear if this would help in my situation. Or do I have to have one instance of "django-admin.py" running per website? Thanks for any clarification. -Chris PS I found this after some googling, but not sure it is still relevant/applicable. It's an old post: http://effbot.org/zone/

pythonpath problem

2008-11-25 Thread Chris Amico
_CACHE /var/www/vhosts/ redfenceproject.com/.python-eggs Any help is much appreciated. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Re: pythonpath problem

2008-11-25 Thread Chris Amico
I have a handful of apps in that folder. I can add it to sys.path using sys.path.insert(0, path) and they import fine after, but that only lasts one session. How do I make it stick? On Nov 25, 5:28 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-11-25 at 14:55 -08

Re: pythonpath problem

2008-11-25 Thread Chris Amico
25, 10:29 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 26, 5:13 pm, Chris Amico <[EMAIL PROTECTED]> wrote: > > > I have a handful of apps in that folder. I can add it to sys.path > > using sys.path.insert(0, path) and they import fine after, but that >

Satchmo 0.8 Released

2008-11-26 Thread Chris Moffitt
I'm happy to announce that the Satchmo team has released Satchmo 0.8. For those of you not familiar with Satchmo, it is a django-based framework for building highly customized online stores. One of the major aspects of this release is full compatibility with Django 1.0.x. This releases includes ma

Re: pythonpath problem

2008-11-26 Thread Chris Amico
eric /usr/lib64/python2.4/site-packages/gtk-2.0 /usr/lib/python2.4/site-packages It looks like I'm not loading either directory here. I'm using mod_python-3.2.8-3.1 On Nov 25, 10:53 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 26, 5:38 pm, Chris Amico <[EMAIL PROTECTE

Re: pythonpath problem

2008-11-26 Thread Chris Amico
OK, got it working. Changed it in .bash_profile. Easier than I thought, always. Thanks folks. On Nov 26, 12:50 pm, Chris Amico <[EMAIL PROTECTED]> wrote: > OK, here's another wrinkle: The modules in that folder import fine on > the browser end. I put tagging in there, and th

Django abstract base class and table structure

2008-11-27 Thread Chris Smith
he structure: create table party ( party_id bigserial, type char(1), -- p = party ... o = organisation first_name character varying(50), last_name character varying(50), name character varying(50), ... ) Is there something I am missing here? Many Thanks, Chris Smith [1] htt

Full time Django developer wanted in/near Atlanta

2008-12-01 Thread Chris H.
We're looking for a great Django/Python developer to join our small team at ajc.com. Check out the job posting at Django Gigs [0] or at Craigslist[1]. Here are some of the benefits to working on our team: * We're a small team -- but full of great people like Maura [2] and Zellyn [3] * Our pro

Custom Middleware TypeError exception

2008-12-05 Thread Chris Smith
response = callback(request, *callback_args, **callback_kwargs) Exception Type: TypeError at / Exception Value: test() takes exactly 1 argument (2 given) - Only occurs after i "return None". If the host entry is not found it works correctly. Any ideas? Is it something silly I'

Re: Custom Middleware TypeError exception

2008-12-05 Thread Chris Smith
On Dec 5, 4:20 pm, Chris Smith <[EMAIL PROTECTED]> wrote: > Any ideas?  Is it something silly I've done? Actually, please ignore this. The exception was firing in user code due to me forgetting to handle a capture group in a URL regex. Back to the coffee machine...

Re: non-model permissions

2008-12-07 Thread Chris Moffitt
se it anywhere you like. My example above which creates a Is_member permission is used in multiple views so it is not tied to one specific model. Hope this helps. -Chris On Sun, Dec 7, 2008 at 12:10 AM, mh983 <[EMAIL PROTECTED]> wrote: > > What is the best way to create permissions for use

Re: Why doesn't syncdb ever modify or drop tables anymore?

2008-12-25 Thread Chris Czub
syncdb has never been able to modify existing models. In order to get some functionality like that, look into django-evolution: http://code.google.com/p/django-evolution/ -Chris On Thu, Dec 25, 2008 at 1:11 AM, Fluoborate wrote: > > Running the command: > python manage.py syncdb >

Simple ManyToManyField/Model question

2008-12-25 Thread Chris Czub
I am trying to make an application for recipes using Django. I am starting simple and going from the tutorial but not getting the results I want. In a less strict framework I'd be able to represent what I want to easily but I'm having trouble figuring out how to do it the Django way while keeping

Re: Simple ManyToManyField/Model question

2008-12-25 Thread Chris Czub
Perfect, the "extra fields" and an intermediary relationship model were exactly what I needed. Thanks. On Thu, Dec 25, 2008 at 3:14 PM, Ramiro Morales wrote: > > On Thu, Dec 25, 2008 at 5:13 PM, Chris Czub wrote: >> >> >> I think I need to use a ManyT

Re: How relevant django book 1.0 is ?

2009-01-10 Thread Chris Amico
And there's a new version in the works: http://holovaty.com/blog/archive/2009/01/09/0133 I found the book was good for getting a broader explanation of certain concepts, especially when I first started with Django. On Jan 10, 5:22 am, timur wrote: > Hello! > > I am newbie in django now reading

Django VBulletin auth backend

2009-01-14 Thread Chris H.
Has anybody done any work on writing a Django auth backend for an existing VBulletin[1] website? I have a need to utilize the existing user database in a Django project and would appreciate not having to reinvent the wheel. My google-fu has failed me on this one, so it may not exist. Any other

Re: Seperate project in a subdirectory (Apache 2.2 & mod_python)

2008-07-15 Thread Chris H.
On Jul 14, 8:23 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > What order are you including them in the Apache configuration? > > Have you tried switching the order? > > Graham I have tried. I thought if I placed the testproject directive first it would short circuit things, but it didn't see

Re: Seperate project in a subdirectory (Apache 2.2 & mod_python)

2008-07-15 Thread Chris H.
On Jul 15, 12:30 pm, V <[EMAIL PROTECTED]> wrote: > First of all Apache will look through all the directives, > and the later ones overwrite the former ones. So you should definitely > put the more precise one at the bottom. > > Probably your media files work, because you've added something like

Re: Seperate project in a subdirectory (Apache 2.2 & mod_python)

2008-07-15 Thread Chris H.
I dunno what's different, but I seem to have it working today. Maybe I didn't restart Apache (I can be prone to dumb mistakes). Here's the final httpd.conf: SetHandler python-program PythonPath "['C:/django-projects'] + sys.path" PythonHandler django.core.handlers.modpython Se

Re: Take an integer and string and make one string

2008-07-16 Thread Chris Webber
String substitution is a bit easier for stuff like this. Try: def __unicode__(self): return u"%s: %s" % (self.consequence, self.slope_height_rr) On Wed, Jul 16, 2008 at 10:14 AM, Molly <[EMAIL PROTECTED]> wrote: > > I am trying to add an integer and a string: > > ===

Re: newforms-admin branch has been merged into trunk

2008-07-18 Thread Chris H.
For those who aren't ready to move towards newforms-admin, Jacob has created a notable_moments/pre-newforms-admin tag. A BIG thanks to Brian and all those who had a hand in getting us to this day! Thanks!! -C --~--~-~--~~~---~--~~ You received this message becaus

Re: django Tutorial for NFA has bugs

2008-07-20 Thread Chris H.
On Jul 20, 3:21 pm, John M <[EMAIL PROTECTED]> wrote: > Given that the group has figured out that you need to run > autodiscover() and register any models you want to show in NFA Admin > page, I wanted to point out that the tutorial has the same bug, > somewhere in Tutorial 2, it tells you to un-c

Multiple languages in Admin

2008-07-21 Thread Chris Ovenden
el has no ForeignKey into the Model being edited. I thought that changing the relationships to ManyToMany might work, but no. Any suggestions? I am using the newforms-admin branch, but I suppose I might as well switch back to the trunk now it's been merged. Thanks! Chris --~--~-~-

Re: Multiple languages in Admin

2008-07-22 Thread Chris Ovenden
Looks great, thanks! Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, sen

psycopg2 error with syncdb (but not with sqlite)

2008-08-19 Thread Chris Moffitt
I am seeing this error - http://dpaste.com/72596/ with django trunk (rev 8445) when I try to run syncdb using psycopg2 but it works just fine if I use sqlite. Basically I'm getting an error when doing the table introspection code. I can see that there's been some refactoring in this area but the S

Forms tutorial

2008-08-20 Thread mccomas . chris
Anyone know of a good tutorial on using forms out there other than the documentation? I'm working on a project where individuals set goals for themselves, start date, end date, and steps goal. Then at the end of the goal period they can go back and add their actual number of steps during that peri

Re: psycopg2 error with syncdb (but not with sqlite)

2008-08-20 Thread Chris Moffitt
re sql inspection. It does look like someone has identified the models that may be causing the problem. For google data mining, the satchmo ticket is here - http://www.satchmoproject.com/trac/ticket/510 We'll look into it some more and try to get more specific about the issue. -Chris --~-

Re: Forms tutorial

2008-08-20 Thread mccomas . chris
Thnx. Something else, I've looked for, with little/no luck, is a form to edit information in the database. So that after a user initially inputs their goal, they can come back at the end of the time period and enter how many steps they actually took... Chris On Aug 20, 8:18 am, Jarek

Re: Not displaying data...

2008-08-23 Thread mccomas . chris
Actually. I was wrong. It is not displaying the right number of rows... On Aug 23, 11:06 am, [EMAIL PROTECTED] wrote: > I have the following code,http://dpaste.com/73388/ > > For some reason the data in the rows is not displaying, there are the > correct number of rows in each table so the for ta

Re: Not displaying data...

2008-08-23 Thread mccomas . chris
Actually I was completely wrong, I figured it out though and it is working properly now. thnx! On Aug 23, 12:37 pm, DailyPuppyGuy <[EMAIL PROTECTED]> wrote: > Should you have: > > {{ object.start_date }} > > instead of just: > > {{ start_date }} > > ?? > > On Aug 23, 11:29 am, [EMAIL PROTECTED] w

Sum Values in DB

2008-08-23 Thread mccomas . chris
I have entries from the different users, they're entering the total number of steps they walked during a particular period of time, that they set. So the model is setup like user (fk) start_date = DateField() end_date = DateField() steps = IntergerField() What I want to do is on the user's deta

Re: Sum Values in DB

2008-08-23 Thread mccomas . chris
Thanks. So if I have this: def my_custom_sql(self): from django.db import connection cursor = connection.cursor() cursor.execute("SELECT foo FROM bar WHERE baz = %s", [self.baz]) row = cursor.fetchone() return row Where would I put that if I intend to use the data mainly as

Not displaying data...

2008-08-25 Thread mccomas . chris
I have the following code, http://dpaste.com/73388/ For some reason the data in the rows is not displaying, there are the correct number of rows in each table so the for tag is working correctly. Any ideas why the content is not displaying? --~--~-~--~~~---~--~~ Yo

Re: Hosting with support for Satchmo webstore

2008-08-25 Thread Chris Moffitt
I think a VPS is definitely the way to go. The upfront setup may be a little bit longer but my opinion is that the long term hassle factor is a lot less. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Create/update/delete generic views and user

2008-08-25 Thread mccomas . chris
Is is possible with Create/update/delete generic views to get the user that's logged in's ID and use? I have a field with a FK for user, I'd really just like to use the generic views for this, since it's a simple thrown together internal site, instead of writing out other views/forms/etc. So, whe

simple multiplication in models

2008-08-25 Thread Chris Amico
This seems like it should be simple, but I'm getting errors. I have a model tracking individual purchases. User inputs an item cost and quantity; I want the total cost calculated. Here are the relevant parts: class Item(models.Model): name = models.CharField(max_length=100) price = model

Re: simple multiplication in models

2008-08-25 Thread Chris Amico
x27;total_cost' in 'field list'") On Aug 25, 3:45 pm, nicksergeant <[EMAIL PROTECTED]> wrote: > Should 'total_cost' simply: > > return total > > instead of: > > return total_cost(total) > > On Aug 25, 5:22 pm, Chris Amico <[EMAIL PR

Re: simple multiplication in models

2008-08-25 Thread Chris Amico
Awesome. That worked. Thanks all. On Aug 25, 4:14 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-08-25 at 15:58 -0700, Chris Amico wrote: > > Changed the variable names to make it a little more readable. Method > > now returns "amount" (form

Complex, somewhat formula...

2008-08-27 Thread mccomas . chris
I have a system that I created a few years back in PHP (it actually started in VB with Excel) that goes through all the college football games, compute a team's win/loss record, then a "power rating" which is based on their winning percentage and their opponents winning percentage. Could I do thi

Re: Complex, somewhat formula...

2008-08-27 Thread mccomas . chris
Thnx. I'm half tempted, just to leave it as is in PHP to compute the stuff, then dump it into a DB and use Django to display everything... On Aug 27, 8:42 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Wed, Aug 27, 2008 at 7:41 AM,  <[EMAIL PROTECTED]> wrote: > > Could I do this with Django

Re: Complex, somewhat formula...

2008-08-27 Thread mccomas . chris
Here's how I had it setup with PHP, and the process of solving the ratings... TEAM name nickname win loss rating rank GAMES date away_team (fk) home_team (fk) away_score home_score With the PHP file, the first thing it does is loop through all the games with scores and computes the outcome of t

Storing some media files on web server and some on external a/v server

2008-08-28 Thread mccomas . chris
We have a web server here at work that is going to host all of our Django app stuff and the majority of our static media files (images, css, js, etc) and then we have a streaming media server where we store the audio of all of our courses. What would be ideal for me to do is to be able to store t

admin deployment

2008-08-30 Thread Chris Haynes
http://127.0.0.1:8000/admin/ works fine, and under fcgi other things work and https:admin/ gives me the admin login screen (without css formatting). But in response to the Log in button it directs to https:///admin/ which fails because the server only directs URLS beginning with https://https:

Re: Using subclass of RequestContext in generic views?

2008-09-02 Thread Chris Emerson
The above would work if you just want to add computed items to the context, but obviously won't work if for some reason you want to alter or filter out pre-existing items from the context. Cheers, Chris --~--~-~--~~~---~--~~ You received this message because you a

Re: URLs Syntax Error

2008-09-03 Thread mccomas . chris
try it without the {} (r'^$','archive_index', dict(archive_dict, template_name='blog/ archive.html')), On Sep 3, 9:07 am, Daniel Hepper <[EMAIL PROTECTED]> wrote: > > could do dict(archive_dict, {'template_name': 'blog/archive.html'} ) > > I don't think it's that easy. I get this: > > >>> dict(a

Re: URLs Syntax Error

2008-09-03 Thread mccomas . chris
right. could do dict(archive_dict, {'template_name': 'blog/archive.html'} ) On Sep 3, 8:40 am, Daniel Hepper <[EMAIL PROTECTED]> wrote: > Adding a comma will probably not help, because you then have 5 values in > the tuple, but the expected format is: > > (regular expression, Python callback fun

Re: handling unique entries

2008-09-03 Thread mccomas . chris
In the admin, or on the site in a view? On Sep 3, 12:12 pm, David <[EMAIL PROTECTED]> wrote: > Hi, > when setting (for example) > name = models.CharField('Name', max_length=50, unique = True) > How does one go about handling the exception if a name is entered > that > already exists in the databa

Re: URLs Syntax Error

2008-09-03 Thread mccomas . chris
i believe you need a comma after archive_info and before {'template_name': 'blog/archive.html'} On Sep 3, 7:40 am, djandrow <[EMAIL PROTECTED]> wrote: > Can no one help me with this, its just these two lines: > >  (r'^archive/$', date_based.archive_index,archive_info > {'template_name': 'blog/arc

Re: django web hosting

2008-09-03 Thread mccomas . chris
I had the beta container for Django and to me, compared to say WebFaction, it was a pain in the ass, it just didn't feel "natural" using the Django container. I am, later this month, moving away from WebFaction and getting a dedicated virtual at MediaTemple tho... On Sep 3, 5:06 am, "Mic Pringle"

Re: MediaTemple Django Containers

2008-09-04 Thread mccomas . chris
I was in beta, just checked my acct and it's already setup with the Django Pro Containers, I better not get charged the $40/month :) I really disliked the containers while they were in beta, they look better now, but to me WebFaction is much better... I'm considering this weekend doing it with a

Help with Date Based Generic Views and Permalink

2008-09-08 Thread mccomas . chris
Hey all, I have this code: http://dpaste.com/76671/ When I go to the URL it doesn't display the page, but it also doesn't display and errors with the URL. What is wrong with the permalink instance? Also, is there a workaround for using multiple date based generic views and having them with dif

Apache httpd conf with mod_python

2008-09-08 Thread mccomas . chris
Setting our Apache server at work, got everything installed. In the httpd.conf there's quite a bit of content, do I need that content, or should I just replace it with what I need for Django? --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
thnx, i've figured it out. the issue i'm having now is with my django requirements in it: SetHandler python-program PythonPath "['/home/chris/web/django_project'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
it wasn't plural, i changed it to plural and then changed it in the httpd.conf, restarted apache, and still no luck. yes, ucwv is at /home/chris/web/django_projects/ucwv On Sep 9, 8:35 am, [EMAIL PROTECTED] wrote: > Ok, it could be that your PythonPath is wrong? > /hom

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
issue i'm having now is with my django > > requirements in it: > > > > >    SetHandler python-program > >    PythonPath "['/home/chris/web/django_project'] + sys.path" > >    PythonHandler django.core.handlers.modpython > >

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
ot; <[EMAIL PROTECTED]> wrote: > > > On Tue, Sep 9, 2008 at 8:05 AM, <[EMAIL PROTECTED]> wrote: > > > > > thnx, i've figured it out. the issue i'm having now is with my django > > > > requirements in it: > > > > > > > >

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
lt;[EMAIL PROTECTED]> wrote: > > > Karen, > > > There is a SELinux kernel, but it is set to disabled. > > All I can say is the error you are getting, combined with the config you > have shown, means that either Apache cannot read the file: > > /home/chris/web/django_proj

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
On Tue, Sep 9, 2008 at 9:21 AM, <[EMAIL PROTECTED]> wrote: > > > > Karen, > > > > There is a SELinux kernel, but it is set to disabled. > > > All I can say is the error you are getting, combined with the config you > > have shown, means that either Apache

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
At first I didn't keep all of the original stuff in the httpd.conf, but then I went back and put up the copy that I backed up and added the Django stuff to it. i have the django stuff in /home/chris/web/ should it be in /var/www ? On Sep 9, 12:19 pm, Steve Holden <[EMAIL PROTECTED

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
[EMAIL PROTECTED] wrote: > > At first I didn't keep all of the original stuff in the httpd.conf, > > but then I went back and put up the copy that I backed up and added > > the Django stuff to it. > > > i have the django stuff in /home/chris/web/ > > > should

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
At first I didn't keep all of the original stuff in the httpd.conf, > > > but then I went back and put up the copy that I backed up and added > > > the Django stuff to it. > > > > i have the django stuff in /home/chris/web/ > > > > should it be in /var/w

Re: Apache httpd conf with mod_python

2008-09-09 Thread mccomas . chris
guys, fixed it. apparently the issue was having it in /home/chris/ i moved it to var/www/ and now it's working :) i knew it'd be something as simple as that. On Sep 9, 1:12 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 9, 2008 at 11:53 AM, <[EM

Re: Persistent Global Imports

2008-09-11 Thread Chris Spencer
On Thu, Sep 11, 2008 at 2:19 AM, Thomas Guettler <[EMAIL PROTECTED]> wrote: > > Chris schrieb: >> I have an application that uses some large packages, such as Wordnet, >> and the imports can take awhile. Is there a mechanism in Django to >> persist imported packag

Newbie legacy db question -- ManyToMany

2008-09-11 Thread Chris Stromberger
different, obviously, and it only has the two foreign keys, both of which together form the primary key. Not sure how to handle this with models... Thanks for any pointers, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
rant.objects.all(), I get OperationalError: (1054, "Unknown column 'restaurant.id' in 'field list'") Not sure what is going on. The model has an explicit primary key defined (this is a legacy db): restaurant_id = models.Au

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
And if I comment out the staff_id line in the model class, my test in the console works fine (Restaurant.objects.all()). On Thu, Sep 11, 2008 at 4:20 PM, Chris Stromberger < [EMAIL PROTECTED]> wrote: > Oh, thanks. Ok, I just tried taking that out (so model now says

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
lm Tredinnick < [EMAIL PROTECTED]> wrote: > > > On Thu, 2008-09-11 at 16:01 -0500, Chris Stromberger wrote: > > I would like to include a foreign key in a table that links to a user > > in Django's auth_user table. Or maybe this is a dumb idea--if so, > > inter

Re: Newbie -- ForeignKey to auth_user?

2008-09-11 Thread Chris Stromberger
That works! Thanks for the help. On Thu, Sep 11, 2008 at 4:38 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Thu, Sep 11, 2008 at 5:20 PM, Chris Stromberger < > [EMAIL PROTECTED]> wrote: > >> Oh, thanks. Ok, I just tried taking that out (so model now says "

Re: Newbie legacy db question -- ManyToMany

2008-09-11 Thread Chris Stromberger
Fantastic, thanks for the info. On Thu, Sep 11, 2008 at 4:19 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Thu, Sep 11, 2008 at 3:32 PM, Chris Stromberger < > [EMAIL PROTECTED]> wrote: > >> I'm wanting to use Django with a preexisting db. The db features

Re: Persistent Global Imports

2008-09-11 Thread Chris Spencer
ut how do you make a single WSGI Django app run in that process group? > Also, you should still post the configuration you use so we can > confirm it is correct. I have many times had people say they followed > the documentation, but in fact they had twe

Using unique on a field

2008-09-11 Thread Chris Stromberger
reation of new model objects or anything else? Just wondering bcs I made a few columns unique on the db after the initial model creation. Is it important to go back and add unique to the Django model in this case? Thanks, Chris --~--~-~--~~~---~--~~ You received this mes

Re: Apache and mod_python trouble

2008-09-12 Thread mccomas . chris
Looks like you're trying to call /polls/ but your urls.py has the directory as /poll/ On Sep 12, 12:36 pm, Tonu Mikk <[EMAIL PROTECTED]> wrote: > Karen Tracey wrote: > > On Fri, Sep 12, 2008 at 11:47 AM, Tonu Mikk <[EMAIL PROTECTED] > > > wrote: > > >     Hello, > > >  

Re: Persistent Global Imports

2008-09-14 Thread Chris Spencer
Nevermind. I just found your post on this issue at http://code.google.com/p/modwsgi/wiki/ConfigurationIssues On Sun, Sep 14, 2008 at 11:32 PM, Chris Spencer <[EMAIL PROTECTED]> wrote: > Ok, so this is what I put at the bottom of my httpd.conf: > > WSGIDaemonProcess myapp process

Re: Persistent Global Imports

2008-09-14 Thread Chris Spencer
One minor question. I'd like to test multiple mod_wsgi Django apps locally, each accessed like localhost/app*. Can I simply use the above directives for each app in httpd.conf without using a VirtualHost for each app? Chris On Sun, Sep 14, 2008 at 11:43 PM, Chris Spencer <[EMAIL P

Re: Persistent Global Imports

2008-09-14 Thread Chris Spencer
process 'myapp' on '/etc/httpd/logs/wsgi.28572.2.1.sock' after multiple attempts. Any thoughts? The above is what the docs use as the standard recipe for running Django with mod_wsgi. Am I missing anything? Regards, Chris On Thu, Sep 11, 2008 at 9:06 PM, Graham Dumpleton <[

Re: Inconsistent urlresolver errors

2008-09-16 Thread Chris Bergstresser
help if the urlresolvers kept a list of what views it failed to initialize, so if you hit one it could tell you the lookup worked, but the subsequent connection to the view didn't. -- Chris --~--~-~--~~~---~--~~ You received this message because you are subscrib

SQL join--why not grab all columns?

2008-09-17 Thread Chris Stromberger
But...the original query already did the join and could have returned these restaurant fields all in the one query. Is there some way to force Django to do this? Am I structuring my model query above, or the models themselves, incorrectly (I can post full models etc if it would help)? Thanks f

Re: SQL join--why not grab all columns?

2008-09-17 Thread Chris Stromberger
On Wed, Sep 17, 2008 at 7:40 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Wed, 2008-09-17 at 19:30 -0500, Chris Stromberger wrote: > > Disclaimer: Django newbie here. > > > > I have a join type of model access in one of my views like

Adding comments in loop

2008-09-18 Thread mccomas . chris
I'm trying to add comments to a page that has the recent blog entires, below is my code: http://dpaste.com/78918/ I get the error: TemplateSyntaxError at / 'get_comment_list' tag requires 5 or 6 arguments What did I do wrong? I've played with it for about two hours and can't figure it out...

Re: Adding comments in loop

2008-09-18 Thread mccomas . chris
actually, that isn't the issue, the issue is with the {% render_comment_form for event %} tag, i'm getting a template syntax error: Invalid block tag: 'render_comment_form' this is right after the comment_list endfor here: http://dpaste.com/78918/ On Sep 18, 10:43 am, [EMAIL PROTECTED] wrote

Re: Adding comments in loop

2008-09-18 Thread mccomas . chris
I apologize, yes {% load comments %} is in there, he's an updated version: http://dpaste.com/78978/ again, the issue is the Invalid block tag: 'render_comment_form' On Sep 18, 1:21 pm, Dmitry Dzhus <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > actually, that isn't the issue, the iss

Auto Discover on MediaTemple

2008-09-23 Thread mccomas . chris
Using the gs and Django container on MediaTemple, got my project installed, it works when I don't have the admin info in the URLS.py, when I add all of the info in the URLS.py and go to the site I get this error: AttributeError at / 'module' object has no attribute 'autodiscover' Here's my URLS

Re: Auto Discover on MediaTemple

2008-09-24 Thread mccomas . chris
Thanks for the tips. When you use the most recent release on MT, they're still using 0.96 for some reason. On Sep 23, 9:30 am, krylatij <[EMAIL PROTECTED]> wrote: > make sure that you use Django 1.0 > this mechanizm was changed since 0.96 --~--~-~--~~~---~--~~ You

Percentages in templates

2008-09-24 Thread mccomas . chris
I have an app that tracks football stats, I'd like to use bar graphs similar to what's on Everyblock. This is their code: http://dpaste.com/80211/ I was curious, how, if possible at all, in the template I could get the percentage for the height. So, for my first graph, so far I'd have these num

Re: virtualmerchant

2008-09-26 Thread Chris Moffitt
Satchmo - http://www.satchmoproject.com is a Django-based store framework with several credit card processing modules. Feel free to use that code as the basis. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Form field rendering question--how to add css classes?

2008-09-26 Thread Chris Stromberger
g any classes, just wondering if there is a way to inject a class into each tag. Thanks, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

HTTPS Question...

2008-09-30 Thread mccomas . chris
We have an online application for school, where we request the individuals SSN and PharmCAS information. The application will be at say www.oursite.com/application/. Since we're gathering sensitive data, I want to obviously make this secure using https:// I don't want the rest of the site to be on

<    1   2   3   4   5   6   7   8   9   10   >