Re: Changing domain cookie

2009-08-04 Thread Chris McCormick
On Tue, Aug 04, 2009 at 09:14:42AM +1000, Malcolm Tredinnick wrote: > > On Mon, 2009-08-03 at 17:51 +0100, Chris McCormick wrote: > > I have a strange issue happening with domain cookies. On the site I'm > > working > > Python's Cookie module doesn't h

Non-intrusive way to authenticate phpBB against Django

2009-08-04 Thread Chris McCormick
Hi All, Just uploaded this: http://code.google.com/p/phpbb-json-auth/ Hope it's useful to someone else. Best, Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

imitating a spreadsheet (kind of) with formsets

2009-08-10 Thread Chris Curvey
What I want to do is have a series of forms, all next to each other in table format, like this: Car Honda Toyota Chevy Price $12,000$14,000 $10,000 MPG 30 2826 Color Blue Red Yellow (I'm sure that's going to look like crap in a

Re: help with excel exports

2009-08-11 Thread Chris Withers
when they click SAVE, > the user can determine where to put the file? My testing so far > indicates this is not browser independent Ultimately, your app has no business even trying to tell a browser where to save things. Most browsers nowadays save to a location configured by the user, if th

Re: Dumping Large Databases

2009-08-11 Thread Chris Spencer
I guess I should have prefixed that by saying my goal is to migrate from MySQL to PostgreSQL. However, I'm having trouble finding a tool to do this, so I thought I'd try Django's backend neutral dumpdata/loaddata feature. Chris On Mon, Aug 10, 2009 at 9:48 PM, Malcolm Tredinnic

Re: imitating a spreadsheet (kind of) with formsets

2009-08-11 Thread Chris Curvey
On Aug 10, 10:13 pm, Malcolm Tredinnick wrote: > On Mon, 2009-08-10 at 19:07 -0700, Chris Curvey wrote: > > What I want to do is have a series of forms, all next to each other in > > table format, like this: > > > Car     Honda      Toyota       Chevy > > Price

Re: OT: Drawing lines in the browser

2009-08-18 Thread Chris Withers
why you want to draw lines... If it's for graphs and the like, just use matplotlib and generate the graphs on the server as .png or .pdf :-) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~--

Re: OT: Drawing lines in the browser

2009-08-18 Thread Chris McCormick
f Firefox but not well in IE. Even better is the element and it has good coverage on recent browsers with the help of explorercanvas <http://code.google.com/p/explorercanvas/> for Internet Explorer, although the drawing must be done dynamically with javascript. <http://cod

Get results from query depending on another query

2009-08-18 Thread Chris McComas
I have a model that has a FK to django.contrib.auth.models Group. I run a query that gets all the groups that a user is a member of: groups = Group.objects.filter(user=request.user) Then I want to run a query for that model that gets and entries in that model where the group FK is one of the gro

Re: Displaying username on every page

2009-08-20 Thread Chris McCormick
> > > > yes > > Thanks for the confirmation. In that case I'll have to write my own > render_to_response() wrapper. Or you can use direct_to_template(). Best, Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You rece

Reusable/plugable apps integrations best practices

2009-08-22 Thread Chris H.
So I'm trying to get my head around making my small, tightly focused apps reusable. I've done this, but right now still have "dependencies" between one another, that I'd like to remove. For simplicity sake, I have an Articles, Events, and Photos app. Right now each Article has a photos.photo an

Re: String aggregator

2009-08-24 Thread Chris Withers
from? What is the error and traceback you get when you try to do the above? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are

Re: Single sign-in

2009-08-28 Thread Chris McCormick
Hi All, My workmate just pointed out that somebody has now done this. Hooray! <http://github.com/uswaretech/Django-Socialauth/tree/master> Chris. On Tue, May 05, 2009 at 05:15:16PM +0100, Chris McCormick wrote: > > Hi All, > > I am sensing a need for a library which allows

Re: some teory help (sorry i couldnt find title for that question)

2009-08-28 Thread Chris Babcock
ged user i mean) > i want to show edit end delete options. How can i do that? You might be doing more work than you need to do: http://pinaxproject.com/docs/dev/search.html?q=tweets&check_keywords=yes&area=default ( or http://bit.ly/Yg7qb ) Chris signature.asc Description: PGP signature

cache.set could be more functional

2009-08-29 Thread Chris McCormick
key to the default and return the default if the key isn't in the cache, or return the value if it is. Chris. --- http://mccormick.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Embedd VIM in Django Application

2009-09-07 Thread Chris Babcock
er the Vim source code exposes any useful functions for your application, however, is academic as there is no way to expose this functionality in a web page or service. Chris Babcock signature.asc Description: PGP signature

Re: Embedd VIM in Django Application

2009-09-07 Thread Chris Babcock
On Mon, 7 Sep 2009 13:08:47 -0600 Dj Gilcrease wrote: > >> How can i embedd vim in my django application? > > http://gpl.internetconnection.net/vi/ maybe? Where's the syntax highlighting? :-) signature.asc Description: PGP signature

Re: How to invoke hasNoProfanities?

2009-09-09 Thread Chris Withers
t; setting in conf > global_settings.py > > I'd appreciate some pointers. It's in the book, which is free to read online at http://djangobook.com/ cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting

Re: Django ORM - Table Changes

2009-09-10 Thread Chris Czub
ctions may not apply directly, depending on what your property is - in the case of a many-to-many relationship, for example, a join table is used. I'm sure you can figure out how to go from here, though. -Chris On Thu, Sep 10, 2009 at 1:31 PM, Thomas wrote: > > I've been teaching m

Re: PyFacebook and python-twitter

2009-09-13 Thread Chris Babcock
there will be no problems with those specific libraries. Asking customer service about support for such will only confuse them because it's an application level that's completely irrelevant to their service. Chris Babcock signature.asc Description: PGP signature

djangorecipe questions

2009-09-16 Thread Chris Withers
s it common practice to have two djangorecipe sections, once for development and one for production, or is it more common to have a buildout.cfg and dev.cfg, with dev.cfg extending buildout.cfg? Finally, it's a shame that the projects generated by the project option are not eggs

Re: Multiple implementations of django's authentication/authorization system

2009-09-16 Thread Chris Babcock
nister the site from 'wasting time' performing non-administrative functions. Hiding presence information for admins and/or creating an adminstrative class that doesn't have access to site features is better design and likely easier to implement. Chris Babcock signature.asc Description: PGP signature

Re: djangorecipe questions

2009-09-17 Thread Chris Withers
an do, but don't hold your breath ;-) (I'm currently following http://jacobian.org/writing/django-apps-with-buildout/ and on a bit of a tight deadline, so don't know when I'll be able to get to this) cheers, Chris -- Simplistix - Content Management, Batch Processing & P

Re: djangorecipe questions

2009-09-17 Thread Chris Withers
James Bennett wrote: > On Thu, Sep 17, 2009 at 5:23 AM, Chris Withers wrote: >> Well, I'm certainly not setuptools-happy, but Django appears to be >> wrapped up as a standard distribution on PyPI (sorry, should have said >> distro, not egg), so it would make sense to u

where to put tests?

2009-09-17 Thread Chris Withers
ython testing frameworks? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: where to put tests?

2009-09-17 Thread Chris Withers
them if you have a suite() function in the __init__ of your tests that returns all yours tests, which is a little bit limiting compared to other python test runners... Chris -- Simplistix - Content Management, Batch Processing & Python Consulting

Re: djangorecipe questions

2009-09-18 Thread Chris Withers
James Bennett wrote: > On Thu, Sep 17, 2009 at 6:01 AM, Chris Withers wrote: >> All of your problems seem to center on zipped eggs. These are evil >> things anyway, and can be avoided by simply putting zip_safe=False as a >> parameter to setuptools (whether it actually come

Editable sitemap priority

2009-09-20 Thread Chris Moffitt
would, I'd be interested in learning. Thanks for any input, 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.

IndexError: list index out of range

2009-09-21 Thread Chris McComas
I am trying to write to CSV, I was able to do so before, not sure what the problem is... When my query returns results, I get this error http://dpaste.com/96399/ Here's my view http://dpaste.com/96398/ If the query is empty it opens the CSV with only the header row... What am I doing wrong? --

composite primary keys?

2009-09-22 Thread Chris Withers
n(DateTime,index=True) cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

specifying test-only dependencies with djangorecipe

2009-09-22 Thread Chris Withers
s? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

serialization formats?

2009-09-23 Thread Chris Withers
Hi All, Where can I find docs on the actual serialisation formats used by Django's serialisation support? http://docs.djangoproject.com/en/dev/topics/serialization/#id1 ...lists them, but doesn't actually describe them :-S cheers, Chris -- Simplistix - Content Management, Batch

equivalent of getattr in a django template

2009-09-23 Thread Chris Withers
{% endfor %} What do I put in the marked spot to be the equivalent of getattr(object,name)? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You receive

Re: equivalent of getattr in a django template

2009-09-23 Thread Chris Withers
Maksymus007 wrote: > {{object.name}} ? no, that is the equivalent of: getattr(object,'name') I want: getattr(object,name) Subtle, but rather important, difference... Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www

Re: equivalent of getattr in a django template

2009-09-23 Thread Chris Withers
return getattr(obj, val) > > Now in the template: > > {{ object|getattr:name }} I agree that it doesn't belong in the template language, but it's surprising that there's no standard filter to do this... Is there an open issue for this or should I raise one? Chris

re-using field definitions

2009-09-24 Thread Chris Withers
was to randomise the order of the fields in the admin interface :-( How should I re-use field definitions so I'm not violating DRY but also such that field ordering stays consistent? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting

is this a sane way to show total number of objects in pagination?

2009-09-24 Thread Chris Withers
) Is that the best way to get the total number of objects returned or is there a way I can do that which means the database does as little work as possible? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.si

Re: is this a sane way to show total number of objects in pagination?

2009-09-24 Thread Chris Withers
Chris Withers wrote: > objects = model.objects.all() > paginator = Paginator(objects,10) > return render_to_response( > 'index.html',dict( > objects = paginator.page(page), > total_objects = len(objects), >

Re: is this a sane way to show total number of objects in pagination?

2009-09-24 Thread Chris Withers
Brian McKeever wrote: > .count is definitely the way to go. Although, I would probably pass it > to your template instead of determining it there. What difference does it make? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting

Re: re-using field definitions

2009-09-24 Thread Chris Withers
artials rock :-) (I could also set all the common bits in the partial and only have the bits that are different in the field definition - DRY to the max :-P) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~---

Re: is this a sane way to show total number of objects in pagination?

2009-09-25 Thread Chris Withers
Jani Tiainen wrote: > Chris Withers kirjoitti: >> Brian McKeever wrote: >>> .count is definitely the way to go. Although, I would probably pass it >>> to your template instead of determining it there. >> What difference does it make? > > len(qs) evalu

Re: Is Django thread safe?

2009-09-28 Thread Chris Withers
Pythoni wrote: > Is Django thread safe?If so, from which version? > Thanks for reply The answer is most likely "no, but it doesn't matter". Why are you asking? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - ht

Re: developing and deploying django with zc.buildout

2009-09-30 Thread Chris Withers
your code is really ending up on the python path. cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Is Django thread safe?

2009-09-30 Thread Chris Withers
better help on the mod_wsgi list: http://googlegroups.com/group/modwsgi Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-~--~~~---~--~~ You received this message because you are

microsoft sql server 2005

2008-05-19 Thread mccomas . chris
i just took a job with a group that just bought a microsoft sql server 2005, they want to drop ASP.net that they're currently using, i was interested in using django on the site going forward. is it possible to setup python/django and run it on a sql server? --~--~-~--~~~-

ImageField get_X_url() method not respecting MEDIA_URL?

2008-06-03 Thread Chris Czub
ence.com/" MEDIA_ROOT = '/home/myuser/webapps/static/' # URL that handles the media served from MEDIA_ROOT. # Example: "http://media.lawrence.com"; MEDIA_URL = 'http://www.mysite.com/media' which is correct - the url of the image SHOULD be http://www.mysite.c

Re: create model instance

2008-06-04 Thread Chris Czub
http://www.djangoproject.com/documentation/models/fixtures/ What you are looking for is an initial_data fixture. You need to serialize the default instance of the model you want as JSON and save it in initial_data.json and then it should prepopulate when you run syncdb. On Wed, Jun 4, 2008 at 2:3

Re: ImageField get_X_url() method not respecting MEDIA_URL?

2008-06-04 Thread chris . czub
Thanks, that was it. -Chris On Jun 3, 5:44 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On Tue, Jun 3, 2008 at 5:15 PM, Chris Czub <[EMAIL PROTECTED]> wrote: > > # URL that handles the media served from MEDIA_ROOT. > > # Example: "http://

Better Query Set Use

2008-06-04 Thread Chris Hartjes
to do this? I spent some time googling around for answers but didn't find anything that could help me. Thanks in advance. -- Chris Hartjes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Better Query Set Use

2008-06-05 Thread Chris Hartjes
rchTeam)).filter(game_date__range(date_form.cleaned_data['startDate'], > date_form.cleaned_data['endData'])).order_by('games_date', > 'start_time') > > > Alex, thanks very much! Worked like a charm. -- Chris Hartjes --~--~-~--~~~--

Re: ASP.Net GridView Equivalent in Django

2008-06-05 Thread Chris Scott
On Jun 5, 2008, at 9:34 AM, Chatchai Neanudorn wrote: > themplatetag + django session (or caching), you can maintain state of > variable. > > I have a change to look at ASP.NET. For my understanding, it > automatically > generate > Javascript for developer, good if dont want to deal with javas

Re: forms - WTF

2008-06-05 Thread chris hendrix
yeah i'm looking at chapter 7 now to try to understand forms On Thu, Jun 5, 2008 at 11:47 AM, Daniel Mahoney <[EMAIL PROTECTED]> wrote: > > Bobby, did you work through the tutorials on the djangoproject web site, > or some of the other Django tutorials available on the web? They can > seem li

Re: forms - WTF

2008-06-05 Thread chris hendrix
Hi Em - I'm taking baby steps at the moment and simply don't understand how the form.as_table works... ie when i put that in the template (see my template below), how does it know which form to show? BR On Thu, Jun 5, 2008 at 11:50 AM, Emily Rodgers <[EMAIL PROTECTED]> wrote: > > Hi, > > It s

Re: forms - WTF

2008-06-05 Thread chris hendrix
t; PS if you need to add some (but not all) fields of a model to a form, and > then do some data munging to fill in some of the other required fields, do > shout if you get stuck - this took me a while to figure out!! > > -- > *From:* django-users@googlegro

Re: {{ media_url }}

2008-06-05 Thread chris hendrix
Hi andrew. I've got the from django.template import Context, Template line at the top of the view. How do i pass the media template contact processor to the template? BR On Thu, Jun 5, 2008 at 4:20 PM, Andrew Ingram <[EMAIL PROTECTED]> wrote: > > Chances are that one of the views isn't passin

Re: {{ media_url }}

2008-06-05 Thread chris hendrix
hi Aaron - my template includes this link to the css my view is: from django import http from forms import ziplookup from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django.template import Context, Template def pr

Re: sending data back to template out of a function

2008-06-06 Thread chris hendrix
Hi Em - I'm not really specifying anything about type @ the moment.. .i'm just trying to figure out how to pass stuff back to the template (ie stuff that's NOT form validation related) BR On Fri, Jun 6, 2008 at 10:40 AM, Emily Rodgers <[EMAIL PROTECTED]> wrote: > > I can't see anything work in

Error while importing URLconf 'mysite.urls': 'module' object has no attribute 'views'

2008-06-14 Thread Chris Haynes
Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> import trees.views >>> import urls Traceback (most recent call last): File "", line 1, in File "c:\Users\Chris\dj\mysite\urls.py"

Re: Error while importing URLconf 'mysite.urls': 'module' object has no attribute 'views'

2008-06-17 Thread Chris Haynes
Resolved. Don't know how. On Jun 14, 9:16 pm, Chris Haynes <[EMAIL PROTECTED]> wrote: > This error goes away if I remove the line > (r'^ptree/$', mysite.trees.views.parse_tree), > from the urlpatterns. But I can import trees.views from the shell > > ~/dj/

Re: serve static files

2008-06-17 Thread chris vigelius
o the static files appear correctly in the source of your page? regards, 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-use

Timestamped comment field

2008-06-18 Thread Chris H.
user. Thus the database storage would look something like: - 17-JUN-2008 13:42 Bob - This is Bob's comment that is stored away and not overwritten by Chris's below... - 18-JUN-2008 17:25 Chris - Here is a comment by Chris...he only entered this The non-DRY way of doing

Re: Timestamped comment field

2008-06-19 Thread Chris H.
On Jun 19, 12:53 am, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Hi Chris, > > May be you can try this model : > ... While I could store each comment off as an instance of a Comments model, I don't really have a need to do so. I'm wanting to have the comm

Re: Thanks!!!!!!!!!!!!!!!!!

2008-06-20 Thread chris vigelius
me2... Am Freitag, 20. Juni 2008 05:50:13 schrieb Juan Hernandez: > me 2 :D > > On Fri, Jun 20, 2008 at 10:42 PM, k0001 <[EMAIL PROTECTED]> wrote: > > Can I jump into the "THANKS" bandwagon? > > > > Thanks. =) > > > > On Thu, Jun 19, 2008 at 11:41 PM, Gene Campbell <[EMAIL PROTECTED]> > > > >

Re: CSS not working in exe

2008-06-20 Thread chris vigelius
re you seem to store your actual media files? If this "data_files" property does what I think it does, then you import admin media from site-packages, but not your own media files. And btw, there's a backslash missing in the third line, too. hth, chris --~--~-~--~~---

Re: Development environment

2008-06-25 Thread chris vigelius
Am Mittwoch, 25. Juni 2008 23:17:37 schrieb Fernando Rodríguez: > Hi, > > I'm currently learning django on Ubuntu, but my background is Windows, > so I'm not a VIM kind of guy. What kind of IDE do you guys use or > recommend? > > Thanks in advance. Eclipse + Pydev + Aptana (for HTML/CSS/Javascrip

Group by week

2008-06-26 Thread Chris H.
I have a view which returns a group of upcoming events. I would like to display the events grouped by week: Week of June 22 * Event 1 * Event 2 * Event 3 Week of June 29 * Event 4 * Event 5 * Event 6 I've seen examples for doing this using the ifchanged tag, and I've got that working. But I c

Re: Group by week

2008-06-26 Thread Chris H.
On Jun 26, 10:44 am, "Scott Moonen" <[EMAIL PROTECTED]> wrote: > Chris, I have a utility function that does this for me.  You can call it > from your view, or if you set things up right from your template: Good stuff, Scott. Thanks! Might be worth turning into a proper

Re: Stability of trunk and 1.0 target: experience, testimonials?

2008-06-27 Thread chris vigelius
ese nasty unique key constraint etc. problems in test, which you simply do not see in development (as sqlite doesn't support them). regards, chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Best way to structure flat pages

2008-06-30 Thread mccomas . chris
Hey all. Working on a new site for a University and was curious on the best way to use Django's FlatPages app, if I should use that or not. They have like 6 main sections: Current Students, Prospective Students, Faculty and Staff, About the School, Pharmacy Profession, and Community. Each of the

Development File Structure

2008-07-01 Thread mccomas . chris
Hey, I downloaded Python 2.5.2, the most recent release of PostgreSQL, and Django 0.96. I've installed PostgreSQL and Python, as well as psycopg for PostgreSQL. I ran my Python command line and it can't find Django. Where do I need to put Django so that the Python can find it? --~--~-~-

Re: Development File Structure

2008-07-01 Thread mccomas . chris
brian, thnx. i got python2.5 installed and django9.6 installed. when i run my python command line and import django and test the version it works. however when i run the command prompt in windows and go to the django directory in python25\lib\site-packages\ and type in python django- admin.py sta

Make changes to model...

2008-07-02 Thread mccomas . chris
Hello all, I'm using MySQL with Django, I setup my models and installed everything, got into the admin panel and realized I left a field out. I went back into my models file, added it, and it gives me an error because while I guess the code realized it's there, that field wasn't created in MySQL.

Re: Make changes to model...

2008-07-02 Thread mccomas . chris
Thanks guys. I know how to do it via the admin, wasn't sure if I was "missing" something within Django to handle it :) Kind of off topic, but say myapp is named myapp, then in the heading the admin will be displayed Myapp with the model items below it. Other than customizing the admin template is

custom template tags

2008-07-03 Thread mccomas . chris
On my homepage I want to have a few different items, one is the recent news items. I created the recentnews.py file: from myproject.site.models import Blog from django.template import Library,Node register = Library() def build_news_list(parser, token): return NewsObject() class NewsObjec

Re: custom template tags

2008-07-03 Thread mccomas . chris
Didn't mean to send it. In my template I'm using this to call the recent news: {% load recent_news %} {% get_news_list %} I'm getting a TemplateSyntaxError, 'recent_news' is not a valid tag library: Could not load template library from django.templatetags.recent_news, No module named recent_news

Re: custom template tags

2008-07-03 Thread mccomas . chris
thanks man, for some reason i couldn't get it and it was about to drive me nuts :) On Jul 3, 10:37 am, Berco Beute <[EMAIL PROTECTED]> wrote: > It should be in: > /project/application/templatetags/ > > 2B --~--~-~--~~~---~--~~ You received this message because you

Re: custom template tags

2008-07-03 Thread mccomas . chris
one more thing. the first one is working. i tried to setup a second template tag for the page called more_news.py. the first is working as recent_news.py. recent_news.py gets the more recent entry, i have more_news.py set to get 2-6. i have {% load more_news %} since the file is more_news.py, it

Re: custom template tags

2008-07-03 Thread mccomas . chris
here's the code: TEMPLATE {% load more_news %} {% get_morenews_list %} {% for news in more_news %} {{ news.title }} {% endfor %} MORE_NEWS.PY from myproject.site.models import Blog from django.template import Library,Node register = Library() def build_morenews_list(parser, token):

Help with templatetags

2008-07-04 Thread mccomas . chris
i setup a custom template tag for my index page called recent_news. i tried to setup a second template tag for the page called more_news.py. the first is working as recent_news.py. recent_news.py gets the more recent entry, i have more_news.py set to get 2-6. i have {% load more_news %} since th

Re: Help with templatetags

2008-07-04 Thread mccomas . chris
Yeah I did. I actually tested it on my development server, also on a production server (actually restarted apache several different times)... On Jul 4, 2:22 pm, Brian Luft <[EMAIL PROTECTED]> wrote: > Have you tried restarting the development server? I've noticed that > Django seems to cache te

Re: MediaTemple Containers

2008-07-07 Thread mccomas . chris
I have one of the beta Django containers on MT, and I also have an account on WebFaction, I love MT, but they're severely lacking with the Django containers, IMO. WebFaction is amazing compared to MT if you plan to use shared hosting On Jul 7, 6:20 am, Niall McCormack <[EMAIL PROTECTED]> wrot

permalink with multiple generic views

2008-07-07 Thread mccomas . chris
i found a post from a while back that basically said if you're using the same generic view type with two different urls you couldn't use the permalink decorator, is that still the case with the SVN release? we have our normal news table for the school's news, but we also have students blogging an

Re: permalink with multiple generic views

2008-07-07 Thread mccomas . chris
thanks! On Jul 7, 9:32 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-07-07 at 06:28 -0700, [EMAIL PROTECTED] wrote: > > i found a post from a while back that basically said if you're using > > the same generic view type with two different urls you couldn't use > > the permalink

Extending the user system

2008-07-07 Thread mccomas . chris
Would it be proper to use the django admin/user system and just extend it to have staff bios, etc? We're going to have it setup that our faculty will have admin access, with limited permissions to login and upload some class lectures (ppt files), edit their class info, etc. Since they'll already

Re: Extending the user system

2008-07-07 Thread mccomas . chris
yes, but when i do that it doesn't show up anywhere in the admin. i'm not getting any errors and running it in development mode right now. class UserProfile(models.Model): url = models.URLField() home_address = models.TextField() phone_numer = models.PhoneNumberField()

Re: Still unable to log into the admin interface

2008-07-07 Thread Chris Hoeppner
Yeah, the book makes you comment those, but makes you uncomment them again in the next (or the next) chapter =) On 07/07/2008, at 17:44, Fernando Rodríguez wrote: > > El lun, 07-07-2008 a las 12:30 -0400, Karen Tracey escribió: > > > >> >> [snip] >> >> MIDDLEWARE_CLASSES = [] #( >>

Project Management App

2008-07-07 Thread Chris Hoeppner
Hey there! I wonder if anyone knows if there's an app resembling ActiveCollab (or Basecamp, for illustration's sake) that I could plug into a django project. If not, would it be a worthy project with an audience? Chris --~--~-~--~~~---~--~~ Yo

Re: Extending the user system

2008-07-07 Thread mccomas . chris
thanks you guys. one more quick question. i have a field in User is_student, it's a Boolean field. in my course model i want to setup a field so that many students can be added to that course, using a manytomany (since courses have multiple students and students have multiple courses). how can i

getting a manytomany field in date based archive index

2008-07-07 Thread mccomas . chris
egory_list %} {{ category.title }}{% endfor %} {% endfor %} It's not displaying the category info, I also tried latest.get_category_list and the same thing. Thanks Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

running development server

2008-07-08 Thread mccomas . chris
hey all, i'm trying to open up my development server to a couple of our other staff members to help me start testing next week. to open up the development server to others on our network, do i set runserver to my IP or the network's

Re: running development server

2008-07-08 Thread mccomas . chris
erver with CTRL-BREAK" line I get "Error: (10049, "Can't assign requested address")" error. if anyone has had this error, please let me know and i can work with our network admin to fix it. the server runs fine when it's just on my machine at 127.0.0.1:8000. chris

Server config

2008-07-09 Thread mccomas . chris
Hey, At work we're getting a new server and going to use it as our web- server and use Django to run our website and our special student/ faculty stuff. What does everyone recommend? FreeBSD, RedHat, or Ubuntu? Thanks, --~--~-~--~~~---~--~~ You received this mess

Re: Where to put stylesheets?

2008-07-09 Thread mccomas . chris
did you set the path to your in your URLconf, since you're using the development server? On Jul 9, 2:59 pm, Benjamin Buch <[EMAIL PROTECTED]> wrote: > > Just to clarify what may be obvious...do you have the correct one > > of these: > > >  href=" {{ MEDIA_URL }}styles.css"  <- what you wrote > >

Re: Where to put stylesheets?

2008-07-09 Thread mccomas . chris
meant to put this in there: http://www.djangoproject.com/documentation/static_files/ On Jul 9, 2:59 pm, Benjamin Buch <[EMAIL PROTECTED]> wrote: > > Just to clarify what may be obvious...do you have the correct one > > of these: > > >  href=" {{ MEDIA_URL }}styles.css"  <- what you wrote > >  hr

Re: Server config

2008-07-09 Thread mccomas . chris
Thanks Jeff. Something else, we're going to be running that as the web-server, but also have a media server, but it is a Windows server. Still possible to send the audio/video/powerpoint to the media server, even though it is Windows? On Jul 9, 2:48 pm, Jeff Anderson <[EMAIL PROTECTED]> wrote: >

Re: Server config

2008-07-10 Thread mccomas . chris
Thanks for the input. I think we're going with Ubuntu. On Jul 9, 11:01 pm, elithrar <[EMAIL PROTECTED]> wrote: > On Jul 10, 2:08 am, [EMAIL PROTECTED] wrote: > > > What does everyone recommend? FreeBSD, RedHat, or Ubuntu? > > Go with what you're most comfortable with - most of my experience has

Authenticate against Active Directory

2008-07-10 Thread mccomas . chris
Has anyone dealt with authentication against Active Directory? I found the Django snippet online (http://www.djangosnippets.org/snippets/ 501/). Right now we have the University network, a web manager, online forums, and online testing software, which the latter three aren't running against AD, so

Re: Authenticate against Active Directory

2008-07-10 Thread mccomas . chris
Thanks tim. Got it setup, but when I try to login to the admin with our dummy acct on AD, I get the error ImproperlyConfigured at /admin/ Error importing authentication backend project.app.auth: "No module named ldap" Running the latest development version of Django with Python2.5 On Jul 10, 8:

Re: Authenticate against Active Directory

2008-07-10 Thread mccomas . chris
Thanks, got it. Thought it was already on the box so that was confusing me :) Now got other errors to worry about, ugh. On Jul 10, 10:23 am, Tim Chase <[EMAIL PROTECTED]> wrote: > > Got it setup, but when I try to login to the admin with our dummy acct > > on AD, I get the error ImproperlyConfig

extension of generic views...

2008-07-10 Thread mccomas . chris
what's the best way with django to remember a page and redirect to that page. so if you're at www.mysite.com/entries/2008/jul/04/this-is-my-entry and you click a link that stores something in a different db field that once it goes through that view and enters the info it redirects you to the url

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