Sites

2008-12-22 Thread todd
Hi, I'm using the latest django release 1.0.2 and following the tutorial. I noticed I do not have 'Sites' in my admin site. Am I missing something to get the 'Sites' appear? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

tagging problems

2009-07-25 Thread todd
Hello all, I'm working through the Practical Django Projects 2nd edition, and I'm using Django 1.0.2. I installed the tagging application tarball in my site-packages and when I ran the syncdb command the tagging application referenced a deprecated django object parse_lookup: from django.db.mode

django request path

2010-07-01 Thread todd
Hello all, I've been working through an issue with my django project. The issue is I've got one project, which will retrieve data for users of different clients. I need to know 'from where' a viewer is coming from (request.path [my original solution]). I've been looking at a number of different op

Re: Image upload error

2008-01-25 Thread todd
class Image(models.Model): image = models.ImageField(upload_to='/PATH/site/files', blank=True, unique=True) class Admin: pass def __str__(self): return self.image class Client(models.Model): name = models.CharField(maxlength=255) street = models.CharField(maxlength=2

Image upload error

2008-01-25 Thread todd
7;\\'\\xff\\xd8\\xff\\xe00\\x10JFIF\\ \\0\\x01\\x02\\x010H0H00\\xff\\xe1\\x' at line 1") The same thing happened with a ManyToManyField(Image). Has anyone got any clues what's happening? Thank, Todd --~--~-~--~~~---~--~~ Y

Re: Image upload error

2008-01-26 Thread todd
got a suggestion to try the svn version, which i did, and hey yep the error is gone. thanks for the time t On Jan 25, 7:08 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Jan 25, 12:55 pm, todd <[EMAIL PROTECTED]> wrote: > > > class Image(models.Model): > > image = mode

Re: Django CSS

2008-02-03 Thread todd
Sorry, I didn't see the reply from Thomas. I do have a question about this answer, it says to use only in a development environment. How can I handle this issue in a production environment? T On Feb 4, 8:30 am, todd <[EMAIL PROTECTED]> wrote: > Hi Django users, > > I h

Re: Django CSS

2008-02-03 Thread todd
Hi Django users, I have the same problem... Do I have to register the css in urls.py (I shouldn't think so)? Also I found the ADMIN_MEDIA_URL (I believe that's the setting, in the settings.py file) It mentions it should be the path to css, and javascript, but I guess that's only for the admin in

Re: Django CSS

2008-02-15 Thread todd
Hi all, I've been looked at the links here on this thread, and online for how to connect my css but the answer still aludes me. I'm not sure where the things are going wrong, so I'm going to present a dummy environments to try to go through the steps of connecting to static files. Say I've got a

pulldown menu's

2008-06-20 Thread todd
m trying to get a multiple items from the DB, and if an item is selected, then the page reloads with the selected items information. Thanks, Todd --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

Speeding up the tests, what am I missing?

2009-01-06 Thread Todd O'Bryan
ed. Just trying it on some model and request/response tests, I got a speed-up from nearly a minute to less than 20 seconds for 13 tests. So, what am I missing? I know this doesn't deal with doctests--the db gets cleaned for all of those, but does anyone see when this is just going to blow up

Re: Speeding up the tests, what am I missing?

2009-01-06 Thread Todd O'Bryan
On Tue, Jan 6, 2009 at 6:05 PM, Malcolm Tredinnick wrote: > > On Tue, 2009-01-06 at 14:51 -0500, Todd O'Bryan wrote: > [...] > >> So, what am I missing? I know this doesn't deal with doctests--the db >> gets cleaned for all of those, but does anyone see when t

Re: Speeding up the tests, what am I missing?

2009-01-06 Thread Todd O'Bryan
On Tue, Jan 6, 2009 at 6:23 PM, Russell Keith-Magee wrote: > > On Wed, Jan 7, 2009 at 4:51 AM, Todd O'Bryan wrote: >> >> So, I've been trying to speed up tests. Surprise. I came across a >> fairly easy solution, so I'm sure I must be missing somethin

absolute_import, app names, dots, and a bug

2009-01-25 Thread Todd O'Bryan
ng this, does it have to since it will mess up absolute_import users? Thanks, Todd --~--~-~--~~~---~--~~ 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@g

Re: absolute_import, app names, dots, and a bug

2009-01-28 Thread Todd O'Bryan
On Sun, Jan 25, 2009 at 7:13 PM, Karen Tracey wrote: > On Sun, Jan 25, 2009 at 7:03 PM, Todd O'Bryan wrote: >> >> I've been trying to convert my apps to use the relative imports from >> __future__ and have noticed a problem. I think it may be something >&

Re: absolute_import, app names, dots, and a bug

2009-01-29 Thread Todd O'Bryan
ant it. I'm okay with living in the present. Especially since I've had four whole days to work on Django stuff since my school district (I teach CS at the high school level.) is closed all week because of an ice storm that has knocked out power at about 1/3 of the schools. Todd

Re: Three table Lookup Question

2009-01-29 Thread Todd O'Bryan
I'm not sure I understand what you're asking, but projs = Project.objects.filter(campaign__industry=x) where x is one of 1-6 should do what you want, I think. Is that what you were asking? On Thu, Jan 29, 2009 at 9:54 AM, Kyle wrote: > > Hello! > > I am trying to get a list of "Projects" base

reason for missing readline() in uploaded files?

2009-01-29 Thread Todd O'Bryan
ll create a two-line patch and submit it--both StringIO and temp files support the method) or a design decision with a good reason? Thanks, Todd --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

Re: reason for missing readline() in uploaded files?

2009-01-29 Thread Todd O'Bryan
On Thu, Jan 29, 2009 at 9:28 PM, Malcolm Tredinnick wrote: > > On Thu, 2009-01-29 at 15:40 -0500, Todd O'Bryan wrote: >> I'm trying to validate an uploaded csv file, so I want to read the >> first line of text and if it's not the right format, send an error &

Re: Session Variables as Default Form Values

2009-01-30 Thread Todd O'Bryan
You can pass data to a form class as a dictionary, so just save a dictionary of the values in your session under some name that you'll know to use. On Fri, Jan 30, 2009 at 5:04 PM, Tyler Brownell wrote: > http://groups.google.com/group/django-users/browse_thread/thread/ed74391560c762bb > > On Fr

Re: Basic question: filtering objects by date

2009-02-01 Thread Todd O'Bryan
How about: items = Item.objects.filter(categories=category, expire_date__gt=today) ? Todd On Sun, Feb 1, 2009 at 2:04 PM, KJ wrote: > > Hi, I want to filter objects based on whether they have expired or > not. Each object has an expiration date. Right now, I am getting all > the

Re: trouble with Django and javascript

2009-02-01 Thread Todd O'Bryan
In addition to displaying the message, it's also submitting the form, so you see the text for a second and then the form reloads. Change the instead of "submit" and see if that helps. Todd On Sun, Feb 1, 2009 at 6:05 PM, min wrote: > > First I have a form: > >

Serving static files with complex auth permissions

2009-06-14 Thread Todd Gardner
els import Document def document_auther(request, filename=None, *args, **kwargs): # Here I can perform any logic like a normal view, with access to request.user (trimmed a bit for simplicity, a full solution would probably use uuids on the filepath). So, is this a good idea/would people

Convenient way to get dynamic names for formset fields?

2009-03-08 Thread Todd O'Bryan
the desert instead of getting something done? Thanks, Todd --~--~-~--~~~---~--~~ 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 unsubscrib

Goflow

2009-10-02 Thread Todd Blanchard
ect abandoned? Is there another workflow lib for django? I love the admin and am leaning heavily towards django just for this, but I am doing a system with a lot of different classes of users and events and handoffs. -Thanks -Todd Blanchard --~--~-~--~~~---~--~---

Versionable Models?

2009-10-27 Thread Todd Blanchard
that relationship. Anybody done this? Got any tips? Thanks, -Todd Blanchard --~--~-~--~~~---~--~~ 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@googlegro

Re: Versionable Models?

2009-10-27 Thread Todd Blanchard
Great, I was trying to decide between that and "The definitive guide" and guess which one I ordered Back to Amazon... :-/ There's quite a learning curve here. -Todd On Oct 27, 2009, at 5:15 PM, Mike Dewhirst wrote: > > Todd Blanchard wrote: >> Total d

Re: how to store web page content values in client side?

2009-10-27 Thread Todd Blanchard
You shouldn't have to do that. Most browsers cache form state so if a user jumps off your page, then hits back, the form values should all be restored. Try doing nothing and see what the browser does. I'll bet it is what you want. -Todd On Oct 27, 2009, at 4:37 PM, webbo wrot

Re: Versionable Models?

2009-10-27 Thread Todd Blanchard
y of the tools yet, but I've got a web app to build and I've judged django has more pre-built parts I need than anything else so here we go. -Todd --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Working the tutorial - and I'm stuck

2009-11-03 Thread Todd Blanchard
What did I screw up? TemplateSyntaxError at /polls/1/ Invalid block tag: 'csrf_token' Request Method: GET Request URL:http://localhost:8000/polls/1/ Exception Type: TemplateSyntaxError Exception Value: Invalid block tag: 'csrf_token' Exception Location: /Library/Python/2.6/site-pac

Re: Working the tutorial - and I'm stuck

2009-11-03 Thread Todd Blanchard
As a total noob - I do that how? On Nov 3, 2009, at 9:14 AM, DrBloodmoney wrote: > Make sure that you have the CSRF middleware installed. > > >> On Nov 3, 2009 12:09 PM, "Todd Blanchard" wrote: >> >> What did I screw up? >> >> TemplateSyntaxErr

Re: Working the tutorial - and I'm stuck

2009-11-03 Thread Todd Blanchard
ddleware', ) I added the last line and restarted the server. Same result. On Nov 3, 2009, at 9:16 AM, Todd Blanchard wrote: > As a total noob - I do that how? > > On Nov 3, 2009, at 9:14 AM, DrBloodmoney wrote: > >> Make sure that you have the CSRF middleware ins

Help a Rails refugee - how to do site specific layouts?

2009-11-12 Thread Todd Blanchard
x27;m building a multiple-domain site and using the sites module so I want different layouts for different sites. Can someone point me an example or a module or something? Thx -Todd -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Any users groups around San Diego?

2009-11-21 Thread Todd Blanchard
I'm still kind of struggling to get off the ground with django and think I'd benefit from some face time with other developers. I'm in San Diego. Any resources? -Todd -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Any users groups around San Diego?

2009-11-21 Thread Todd Blanchard
Wow, thanks. I can actually walk to that one! -Todd On Nov 21, 2009, at 11:34 AM, Donna Snow wrote: > Todd, > > Have you tried Meetup? If you can't find one there.. start one :-) > > Found this Django San Diego - meeting December 1: > > http://djangosd.jottit.com/ &

Designing base template - how to include media properly?

2009-11-23 Thread Todd Blanchard
f properly but I cannot figure out how. Seems like I should be able to do something like {{ media }} but I cannot figure out exactly how to properly aggregate all the forms' media's and get them spewed into the templates properly. -Todd -- You received this message because you a

Re: Designing base template - how to include media properly?

2009-11-24 Thread Todd Blanchard
What about de-duping? If two forms want the same js file, will it get included twice? It seems like this is the kind of thing that the framework should handle and the current "solution" is kind of half baked. -Todd On Nov 23, 2009, at 2:40 PM, Mark (Nosrednakram) wrote: > > He

Re: Designing base template - how to include media properly?

2009-11-24 Thread Todd Blanchard
ight in my head. -Todd Blanchard On Nov 24, 2009, at 2:05 PM, Tim Valenta wrote: > The idea is along the lines of what you initially guessed. > > The admin accomplishes the non-duplicate effect in django/django/ > contrib/admin/options.py, starting at line 770. It loops over the &g

Re: Designing base template - how to include media properly?

2009-11-24 Thread Todd Blanchard
ve_media}) > > Your template: >{% block my_media_block %} >{{ block.super }} >{{ media }} >{% endblock %} > > I fail to see what is so hard about this. > > Tim > > On Nov 24, 4:13 pm, Todd Blanchard wrote: >> You know what, this is

Re: Designing base template - how to include media properly?

2009-11-24 Thread Todd Blanchard
gt; appreciating the slick objects that have been crafted for this very >> purpose. >> >> Your view: >> cumulative_media = form.media for form in forms >> return render_to_response('mytemplate.html', {'media': >> cumulative_media}) >>

Re: Designing base template - how to include media properly?

2009-11-24 Thread Todd Blanchard
in the admin but now I'm building my own UI). In fact, I'm pretty fuzzy in general about how code like widgets gets "found" and loaded. -Todd Blanchard On Nov 24, 2009, at 3:52 PM, Tim Valenta wrote: > Sorry-- I got out of sync with the replies. > >> Or am I missing s

calendar.js can't find variable gettext

2009-11-24 Thread Todd Blanchard
I'm trying to use the date/time entry widgets from admin and I get this javascript error and the controls don't render. Where is this supposed to come from? In annoyance, I have copied the head section precisely from an admin page that work. Still doesn't work in my page.

Re: calendar.js can't find variable gettext

2009-11-24 Thread Todd Blanchard
Yep, I solved this by ripping and copying some code out of admin/sites.py and adding a url conf for it. It works now, but this should be included by default through the widget media dependency system. Not very slick. I tried filing a bug and the submission was rejected as spam. -Todd

Re: calendar.js can't find variable gettext

2009-11-25 Thread Todd Blanchard
Did that, filed it. Ticket #12264 -Todd Blanchard On Nov 25, 2009, at 8:01 AM, Tim Valenta wrote: > > > On Nov 24, 10:32 pm, Todd Blanchard wrote: >> Yep, I solved this by ripping and copying some code out of admin/sites.py >> and adding a url conf for it. >>

Sick of defining urls

2009-11-25 Thread Todd Blanchard
ittle snippet or recipe to do this generically once and for all? -Todd Blanchard -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send e

More media collection nightmares

2009-11-25 Thread Todd Blanchard
results in failure. Is there some way to specify order dependency in js files using this mechanism? Otherwise I think it is worthless. -Todd Blanchard -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: More media collection nightmares

2009-11-25 Thread Todd Blanchard
s on every page as part of the base template. So far so good. Hopefully I won't find any more widgets with surprise dependencies. -Todd Blanchard On Nov 25, 2009, at 12:14 PM, Tim Valenta wrote: > Is it a widget that has the "core.js"? I'd suggest putting that on >

Forms ForeignKeyField does not populate with initial value

2009-11-25 Thread Todd Blanchard
ve rendered the current logged in user's name elsewhere on the page, it is set. But the popup selector isn't getting its selection set right. Any tips? -Todd Blanchard -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Forms ForeignKeyField does not populate with initial value

2009-11-26 Thread Todd Blanchard
iceField > (User.objects.all(), widget=forms.HiddenInput()) > > then it should work out ok. I usually hide fk fields to a user if i > want the current request.user object, because I don't want to allow > the possibility for it to be changed. > > On Nov 25, 10:32 pm, Todd Blanchard wro

Re: Forms ForeignKeyField does not populate with initial value

2009-11-26 Thread Todd Blanchard
>> form = IncidentForm(initial={ >>'reporter': request.user.id, makes it work OK. Seems counter-intuitive given the the ForeignKeyField wants to work with objects rather than keys though. On Nov 26, 2009, at 12:33 PM, Todd Blanchard wrote: > I want it to

Re: Sick of defining urls

2009-12-02 Thread Todd Blanchard
string > you've got handy. > > I think that the reason why this latter suggestion doesn't have a > reason to exist is because you've always got to validate all sorts of > stuff very specific to the model. By making one generic view, you're > bound to never r

Using a form to UPDATE a record?

2009-12-03 Thread Todd Blanchard
onary of values, so how to convert a model object to a dict? -Todd Blanchard -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, se

Re: Using a form to UPDATE a record?

2009-12-03 Thread Todd Blanchard
Thanks, that makes the form show up populated. But saving it creates a new record, despite making sure I have id in a hidden field on the form. :-/ On Dec 3, 2009, at 12:26 AM, Rishabh Manocha wrote: > On Thu, Dec 3, 2009 at 4:17 PM, Todd Blanchard wrote: >> All the tutorials on form

Re: Using a form to UPDATE a record?

2009-12-03 Thread Todd Blanchard
n_occurred = forms.DateTimeField(widget=widgets.AdminSplitDateTime()) reporter = forms.ModelChoiceField(User.objects.all(), widget=forms.HiddenInput()) id = forms.CharField(widget=forms.HiddenInput()) class Meta: model = Incident fields = ('title', '

Re: Using a form to UPDATE a record?

2009-12-03 Thread Todd Blanchard
That did it. I figured if the form had a primary key it would do an update. I guess that was wrong. The url is the form you describe, but the dispatcher view method adds the id to the GET of the request to pass it on. So the url for this is actually /incidents/edit/4. Thanks. On Dec 3, 20

Re: Sick of defining urls

2009-12-03 Thread Todd Blanchard
python, django, postgis, and a whole other raft of technologies all at once. Its a steep curve and I can use all the help I can get. -Todd Blanchard -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Forms - readonly representation?

2009-12-03 Thread Todd Blanchard
Forms seem nifty, but sometimes I want to display the data in the same format but readonly. Is there a to do this? I can't seem to find it. -Todd Blanchard -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Sick of defining urls

2009-12-03 Thread Todd Blanchard
han one. Not DRY at all. Just adding an app to INSTALLED_APPS should make all this other stuff just happen. -Todd Blanchard On Dec 3, 2009, at 9:40 AM, Javier Guerra wrote: > have you considered writing a url pattern generator? if it's handy > enough, it would become quite popul

Re: Sick of defining urls

2009-12-03 Thread Todd Blanchard
I'm quite aware how the amazon browse service works. I also know it takes a whole team of people to manage it. I'm one guy. :-) On Dec 3, 2009, at 10:31 AM, Sean Perry wrote: > Here is the page on Amazon for Learning Python: -- You received this message because you are subscribed to the Goog

Re: Sick of defining urls

2009-12-03 Thread Todd Blanchard
Oh, I've already come to terms with that. So long as XCode makes indenting easy I'm OK. :-) On Dec 3, 2009, at 11:19 AM, Alex Robbins wrote: > If you start to complain about significant whitespace too, you aren't > welcome to stay either. :) -- You received this message because you are subscr

Re: Forms - readonly representation?

2009-12-03 Thread Todd Blanchard
c 3, 2009, at 9:05 AM, Todd Blanchard wrote: > Forms seem nifty, but sometimes I want to display the data in the same format > but readonly. Is there a to do this? I can't seem to find it. > > -Todd Blanchard > > -- > > You received this message because you are s

What apps do besides provide views?

2009-12-03 Thread Todd Blanchard
include it? I definitely cringe when copying an integrated app's templates into my project's template hierarchy. -Todd Blanchard -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: What apps do besides provide views?

2009-12-03 Thread Todd Blanchard
y model vs view (because when I say view - I mean just a function that takes a request, returns a response, and lives in a file called views.py). What am I missing? On Dec 3, 2009, at 11:58 AM, bruno desthuilliers wrote: > On 3 déc, 20:42, Todd Blanchard wrote: >> On Dec 3, 2009, at 10:46

Re: Forms - readonly representation?

2009-12-03 Thread Todd Blanchard
I'd gotten nearly a dozen responses to a later question so I figured the threshold of awareness had passed on this one. Anyhow, I'll check that one out. Thanks. On Dec 3, 2009, at 2:48 PM, Nick Arnett wrote: > tempted not to respond due to the "deafening silence" comment... did you > imagine

Re: Sick of defining urls

2009-12-04 Thread Todd Blanchard
m no regex maven - I use them seldom and always have to look them up and fiddle around with them for quite awhile to get them right). So, no, I would not be happier with pylons. I'm happy here with this modification, thanks. -Todd Blanchard On Dec 4, 2009, at 12:41 AM, bruno desthuill

Stuck trying integrate jinja2 - need compatibility extensions

2009-12-09 Thread Todd Blanchard
' and the entire app dies) and a few others. I'm stuck. What's the trick to getting compatibility tags for django installed into jinja2? -Todd Blanchard -- You received this message because you are subscribed to the Google Groups "Django users" group. To post t

attachments vs filebrowser

2009-12-18 Thread Todd Blanchard
I need users to attach arbitrary media files to database records. Attachments seems to do what I need, except that its UI is utterly lame - it should figure out the media type of the file from the extension and display an appropriate thumbnail as well as a way to provide a viewer inline. Also,

Rails-style form value deserializer?

2009-12-18 Thread Todd Blanchard
two' }} this is very handy when updating multiple related objects in a single form submit. Is there a similar facility for django/python or will I need to write it? -Todd Blanchard -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Rails-style form value deserializer?

2009-12-19 Thread Todd Blanchard
ef/request-response/#querydict-objects > for more info. > > On Sat, Dec 19, 2009 at 2:27 AM, Todd Blanchard wrote: > One thing I'm keenly missing from rails is the form input naming convention > that causes the form values to be converted into a hierarchy. For instan

Re: Rails-style form value deserializer?

2009-12-19 Thread Todd Blanchard
Clear as mud. Where does it show how I update two objects in one form? On Dec 19, 2009, at 1:16 PM, Antoni Aloy wrote: > 2009/12/19 Todd Blanchard : >> How does this solve the problem of having two related objects that have the >> same attribute name (like "name") on

Re: Rails-style form value deserializer?

2009-12-19 Thread Todd Blanchard
expanding forms - IOW, allow the user to keep adding books to an Author using DHTML. So far my impression of forms is - ick - lame. -Todd Blanchard On Dec 19, 2009, at 4:37 PM, Karen Tracey wrote: > On Fri, Dec 18, 2009 at 7:27 PM, Todd Blanchard wrote: > One thing I'm keenly miss

Re: Rails-style form value deserializer?

2009-12-23 Thread Todd Blanchard
x and the ability to compose forms dynamically and quickly. Thanks for the help. I may pick it up again - but probably not for this project. -Todd Blanchard On Dec 20, 2009, at 1:06 AM, Russell Keith-Magee wrote: > As for dynamically expanding forms - Django treats that as a client > side pr

Hosting multiple projects

2010-11-22 Thread Todd Wilson
I teach a course in which I have students developing unrelated Django projects on servers of their own choice. As we near the end of the semester, I would like to set up a single server where I can host all of these student projects together. I will obviously create a new user, as well as a new m

Django on a hosting service

2010-11-27 Thread Todd Wilson
e would be many to choose from: http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts Thanks, --Todd -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubs

Re: Django on a hosting service

2010-11-28 Thread Todd Wilson
been looking into. I'm pleased to see that it coincides with your recommendation :-). --Todd -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this g

Choices vs. ForeignKeys (was: Django - Alternative to using NULLs? (for integer and FK fields).)

2010-11-29 Thread Todd Wilson
a foreign-key relationship? I'm facing this decision in a number of different places in a Django application I'm working on. Thanks, --Todd -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: Django on a hosting service

2010-12-09 Thread Todd Wilson
can be done with an .htaccess file, and how much I will have to ask them to do for me? Thanks, --Todd Todd Wilson wrote, on 11/27/2010 07:20 PM: > I'm helping some friends improve a portal website they have created > using PHP, but which would be ideal for Django, in the sense that a lot >

Re: Django on a hosting service

2010-12-11 Thread Todd Wilson
elf with an .htaccess file? --Todd > On Dec 9, 8:56 pm, Todd Wilson wrote: >> A couple of weeks ago I sent the message quoted below to the list. One >> reader (Daniel Roseman) replied and suggested that I might not need to >> ask the hosting service to install anything, quoting

Re: Django on a hosting service

2010-12-12 Thread Todd Wilson
s. I also have to decide where to install django (if they don't do it for me), where to put my django application files, and where to put my site media. I'd be grateful for any advice on these topics. Thanks, --Todd tiemonster wrote, on 12/12/2010 06:03 AM: > Do you have access to

Re: Django CMS 2.1 Release Candidate 3 was just released!

2011-01-14 Thread Todd Wilson
nd of information was available in an overview document on the django-cms project homepage.) Todd Wilson Jonas Obrist wrote, on 01/14/2011 09:31 AM: > The django CMS core team just released the third release candidate for > version 2.1. > > Download: http://pypi.python.org/pypi/dja

Noob: How do I get this app to work :(

2013-05-16 Thread Todd Wickizer
Hello there, I just install Django yesterday. I am trying to take a calendar app and edit it for my own means. Unfortunately I am a little confused on how to create the Urls.py file to match the application. Here is the application. http://code.google.com/p/django-event-calendar/source/browse/#

Re: Noob: How do I get this app to work :(

2013-05-16 Thread Todd Wickizer
I have a feeling that this application is too old to use and is missing too much code? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@

Re: Noob: How do I get this app to work :(

2013-05-17 Thread Todd Wickizer
Thanks Tom. I tried copying and pasting the urls.py data into the thing and I got this error. Could not import django.views.generic.list_detail.object_detail. Parent module django.views.generic.list_detail does not exist. I'm assuming that that is depreicated and that this app no longer works?

Upgrading from 1.9 to 1.11 Closed Network

2017-11-17 Thread Todd Gilliland
I need to upgrade Django 1.9 to 1.11 on a closed network. Is there a way to upgrade from a downloaded source file ? I've successfully upgraded on our Cloud environment using "pip3.5 install -U Django" but can't use this command on a closed network since pip is looking to

Re: Upgrading from 1.9 to 1.11 Closed Network

2017-11-17 Thread Todd Gilliland
Great. Thanks Jason. On Friday, November 17, 2017 at 8:29:02 AM UTC-5, Jason wrote: > > You can do this with pip, check out > http://www.nyayapati.com/srao/2014/06/how-to-pip-install-python-packages-offline/ > >> >> -- You received this message because you are subscribed to the Google Groups

Experiences/tips for deploying and supporting on-premise in enterprises?

2016-12-26 Thread Todd Schiller
tion/Authorization: e.g., LDAP, AD, etc. - Updates: bug fixes, and changes requiring migrations Also, if you're a development shop that has experience building enterprise Django applications, we'd love to chat with you because we're looking for some extra resources on our projects.

Re: Experiences/tips for deploying and supporting on-premise in enterprises?

2016-12-27 Thread Todd Schiller
enterprise clients? Mudassar, what in particular should I look at on that site? It looks like it's a service for migrate on-premise infrastructure to the cloud? On Monday, December 26, 2016 at 12:34:47 PM UTC-6, Todd Schiller wrote: > > My team is considering using Django for a SaaS

Ready to throw the keyboard using Django 1.7 on Windows 7

2015-06-19 Thread Todd Kovalsky
Having a miserable time trying to get a django site running on a wintel box. The issue comes after I add models to models.py. I keep getting the error Could not import settings 'myapp.settings'...No module named myapp.settings. Very irritating trying to get a site up and working on a windows ma

Re: no one on the IRC?

2007-12-25 Thread Todd O'Bryan
If you can ever log on and not find Magus there, I'd be surprised. I think the IRC channel has a direct link to his brain. Which is, by the way, a good thing. He (and all the other people on the channel) are an amazing resource. Todd On Dec 24, 2007 9:32 AM, Empty <[EMAIL PROTECTED

Re: How to create an "iffirst" tag?

2007-12-28 Thread Todd O'Bryan
endfor %} > Is there a compelling reason not to do the filtering in the view before you even hit the template? Todd --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

newforms tricks

2007-12-28 Thread Todd O'Bryan
nd to find the right incantations, so I added a section to the Cookbook[1] called newforms[2] and included instructions for creating form fields dynamically[3] and altering the default order[4]. If anyone sees any obvious stupidness or this duplicates information available elsewhere, please let me k

Re: newforms tricks

2007-12-29 Thread Todd O'Bryan
in enumerate(questions): > self.fields['question_%d' % i] = > forms.ChoiceField(label=questions, ...) > Thanks for pointing this out. I didn't even know about the enumerate function! Both fixed. Todd --~--~-~--~~~---~--~~ You received this message because

Re: hide fields using newforms

2007-12-30 Thread Todd O'Bryan
mean type="hidden" ? > http://www.djangoproject.com/documentation/newforms/#widgets > > You can create your own widget if you need to. > Or you can just use the HiddenInput widget that already exists. Here's how you'd declare a hidden text field: class SomeForm(forms.Form

Re: Getting related data...

2007-12-31 Thread Todd O'Bryan
There's probably an easier/more efficient way to do it, but you can do services = [] for p in Profile.objects.all(): services += p.service_set.all() Todd On Dec 31, 2007 7:07 PM, ocgstyles <[EMAIL PROTECTED]> wrote: > > Hi All, > > I'm trying to figure out how t

Re: Can I use a underscore in my url to separate variables?

2008-01-01 Thread Todd O'Bryan
ython regexes and strings and will show you exactly how they match or don't. http://kodos.sourceforge.net/ HTH, Todd On Jan 1, 2008 10:39 PM, <[EMAIL PROTECTED]> wrote: > > I think that should be an underscore: [a-zA-Z_] > Owen > > > -Original Message- >

Re: Can I use a underscore in my url to separate variables?

2008-01-01 Thread Todd O'Bryan
Have you added the app to your INSTALLED_APPS ? Maybe you should paste in your site's urls.py as well as the app's. On Jan 1, 2008 11:09 PM, Greg <[EMAIL PROTECTED]> wrote: > > ocgstyles, > I've tried the following combinations however I still get the Page Not > Found error: > > (r'^(?P[a-zA-Z-]

Re: Can I use a underscore in my url to separate variables?

2008-01-02 Thread Todd O'Bryan
Try downloading Kodos and sticking in your regex and the string you want to match it and see what it says. Todd On Jan 2, 2008 12:59 AM, Greg <[EMAIL PROTECTED]> wrote: > > ocgstyles, > Tried it...still no good > > (r'^(?P[a-zA-Z]+)_(?P[a-zA-Z]+)/$', '

Re: How to bind data to a form, and not make the validation fire

2008-01-06 Thread Todd O'Bryan
initial? > Not exactly what you're looking for, but in the neighborhood: http://code.djangoproject.com/wiki/CookBookNewFormsDynamicFields You want to do something like def __init__(...): ... self.fields['text'].initial = function_to_get_my_initial_value() HTH, Todd --

Re: IE error when clicking the back button after a POST

2008-01-21 Thread Todd O'Bryan
submitting a form. (There are probably more subtle rules, but stick with these unless you have a good reason to break them.) Todd On Jan 20, 2008 5:58 PM, Greg <[EMAIL PROTECTED]> wrote: > > Hello, > I have a form submission where people can search by properties of my > produc

GSoC idea for Django-friendly static checkers

2008-03-29 Thread Todd O'Bryan
ing a static checker on Django code is a mess. Would a good GSoC project involve modifying one or both of the standard Python code checkers so that they're smarter about Django? Or maybe everybody thinks static checking is for wimps and I should just stop misspelling things... Todd P.S.

  1   2   3   >