#6189: IntegrityError: Field "may not be NULL" even though blank=True

2007-12-12 Thread Tyson Tate
he admin interface. [1] <http://code.djangoproject.com/ticket/6189> Regards, Tyson --~--~-~--~~~---~--~~ 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: css 404?

2007-08-03 Thread Tyson Tate
_files/ And you should be on your way. -Tyson --~--~-~--~~~---~--~~ 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 thi

Re: Should I give up on dreamhost?

2007-07-23 Thread Tyson Tate
go is easy to use. I > guess they mean for big projects. For smaller projects, it hardly > seems to be worth the overhead. Blaming Django for FastCGI problems on discount-rate hosting services doesn't make any sense. Django works fine. I even have Django running well under

Re: Wanted A PERSON design a software (account number, the password producer )

2007-07-22 Thread Tyson Tate
dom password generator. Just search Google for "random password generator". Here's a Python example, if that's what you're looking for: <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/59873> Regards, Tyson --~--~-~--~~~---~--~--

edit_inline and empty models

2007-07-21 Thread Tyson Tate
7;t find a relevant patch (I know edit_inline is notoriously buggy). Can anyone point me to a good workaround or patch? I'm using Django 0.96 and PostgreSQL on Web Faction's setup. I wouldn't mind upgrading to the latest SVN, if that's known to

Re: Could you please share your django-based website source code with me?

2007-07-02 Thread Tyson Tate
<http://fallingbullets.com/blog/2006/nov/02/falling-bullets-source- code-you-ninnies/> :) -Tyson > On 7/2/07, nick feng <[EMAIL PROTECTED]> wrote: Hi All, > > I plan to build a django-based website for open-sourcing these > days, I have read the django-book. > Si

Re: Django Developer Needed

2007-06-21 Thread Tyson Tate
e a CMS is like saying my oven is a pie because I can make a pie with it. Pedantically yours, Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Re: Pagination

2007-06-21 Thread Tyson Tate
have a next or previous page ("has_next" and "has_previous"). -Tyson On Jun 21, 2007, at 1:11 PM, Rob Hudson wrote: > > I've set up a list view that I want paginated and I'm using the > list_detail generic view. I was thinking that I would prefer the / &

Re: Development times

2007-06-20 Thread Tyson Tate
From text editor on MacOS X: File -> Print Save as PDF Upload through Admin interface. No sense making it more complicated than it has to be. :) -Tyson On Jun 20, 2007, at 3:06 PM, Justin Lilly wrote: > Tyson- > > What are you using to build those pdf's? > > -just

Re: Development times

2007-06-20 Thread Tyson Tate
If you make heavy use of Generic Views, you can save a ton of time. This quick-and-dirty site took about 4 hours, from models to templates to CSS: http://iotapi.com Nothing too special, really, but we had simple requirements. -Tyson On Jun 20, 2007, at 2:00 PM, Eugene Morozov wrote

Re: Kid and css file

2007-06-11 Thread Tyson Tate
On Jun 11, 2007, at 11:18 AM, Francis wrote: > So far everything is working fine. But I have founded no working > solution to make my /static/css /static/images /static/javascript > works. Read this: http://www.djangoproject.com/documentation/static_files

Re: The going rate for Django-based web developers ...

2007-06-08 Thread Tyson Tate
;t forget that universities are pumping out lots of fresh college grads who haven't been snapped up yet and who, although lack some qualifications, will work for a much more reasonable price than you might think. And we have a nice little bonus: College grads are easily malleable. L

Re: Best Place To Start Learning Django/Python

2007-05-23 Thread Tyson Tate
to get started than by getting down and dirty and hacking through your own projects. Regards, Tyson On May 23, 2007, at 1:07 PM, Peter Pluta wrote: > I don't really have any programming experience outside of hacking > up a few > lines of php, but it'd like to start learning pyt

Re: URLPattern - can't fetch a detail page

2007-05-19 Thread Tyson Tate
Can you post a stack trace and more details from your url.py file? -Tyson On May 18, 2007, at 1:05 PM, Panos Laganakos wrote: > Thanks for the reply mate, but that doesn't seem to be the issue. I > still can't figure out what&#x

Re: URLPattern - can't fetch a detail page

2007-05-18 Thread Tyson Tate
(r'^/(?P[-\w]+)/?$', 'object_detail', dict (news_list_info, slug_field='news_entry')), Regards, Tyson On May 18, 2007, at 10:30 AM, Panos Laganakos wrote: > I've set up the url pattern as: > (r'^/(?P[-\w]+)/?$', 'object_detai

Re: CentOS python rpm

2007-05-18 Thread Tyson Tate
A quick Google search should start you off on the right track. Try: or depending on your server architecture. I hope this helps! Regards, Tyson On May 18, 2007, at 11:15 AM, Christian M Hoeppner wrote: > > Hi there! > > I know this is fairly off-topic, but I thought you

Re: djangoproject.com's bug tracking and wiki code available?

2007-05-18 Thread Tyson Tate
Yup: http://trac.edgewall.org/ -Tyson On May 18, 2007, at 11:46 AM, Fred Jones wrote: > > Is the source code available to djangoprojects.com's ticketing > system and wiki [ http://code.djangoproject.com/simpleticket ]? > > Thanks. --~--~-~--~~~

Re: Admin, edit_inline, and saving

2007-05-16 Thread Tyson Tate
4. What version of Django are you running? 5. What server are you running Django through (Apache, built-in dev server, etc.) I'd assume that perhaps your MEDIA_ROOT or upload_to attributes are set incorrectly. Regards, Tyson On May 8, 2007, at 12:01 PM, jules wrote: > I am having a

Re: Loading JSON dump fails

2007-04-13 Thread Tyson
"fields": { "slug": "boom", "title": "Boom" } } } <-- End extra curly bracket ] But that's certainly not what the output of the dump was. In any case, I've closed the ticket as "worksforme". I&

Loading JSON dump fails

2007-04-12 Thread Tyson Tate
on fixture 'subjects' from '/Users/ttate/Desktop/ datagenie2/../datagenie2/apps/databases/fixtures'. Problem installing fixture '/Users/ttate/Desktop/datagenie2/../ datagenie2/apps/databases/fixtures/subjects.json': Expecting property name: line 2 column 1 (char 3) -- The

AttributeError: 'WSGIRequest' object has no attribute 'user'

2006-10-18 Thread Tyson Tate
dleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', ) Thanks in advance for any ideas! -Tyson --~--~-~--~~--

Re: Anybody know of an example of a Django app that uses a JavaScript module?

2006-10-06 Thread Tyson Tate
No JavaScript needed. -Tyson On Oct 2, 2006, at 6:43 PM, carlwenrich wrote: > What I want to do is call a JavaScript module with clickable images, > and then go to a Django view when a user clicks on an image. --~--~-~--~~~---~--~~ You received this m

Re: One-To-Many doesn't return a list.

2006-09-27 Thread Tyson Tate
using settings 'pical.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. [, ] [28/Sep/2006 04:03:20] "GET /2006/sep/26/some-event/cut/ HTTP/1.1" 500 45310 --- (This is the latest SVN branch.) I'm c

Re: One-To-Many doesn't return a list.

2006-09-24 Thread Tyson Tate
nately, getting five-year-olds to stop screaming is not one of my skills. ;) Sorry, Russell! Regards, Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: One-To-Many doesn't return a list.

2006-09-23 Thread Tyson Tate
this bug, can I? (I'm using Django 0.95 on MacOS X 10.4 using Python 2.4.3, sqlite 3.3.7, and py-sqlite 2.3.1.) Regards, Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

One-To-Many doesn't return a list.

2006-09-22 Thread Tyson Tate
ime. What gives? In the shell, it's a list: >>> from pical.apps.calendar.models import Event, SignupSlot >>> event = Event.objects.get(id=1) >>> event >>> slots = event.signupslot_set.all() >>> slots [] But in the tem

Crashing Default Manipulator with ForeignKey/ManyToMany Combo

2006-09-22 Thread Tyson Tate
png Magus on IRC was kind enough to track down a potentially relevant line of code in the current SVN trunk: django/db/models/manipulators.py:218 Is this a Django bug or did I do something incorrectly? Thanks, Tyson Tate --~--~-~--~~~---~--~~ You received th

Django Security

2006-09-21 Thread Tyson Tate
ity presentations or papers out there that would help me make my case to the higher-ups? Perhaps there are some tutorials about securing Django webapps which I can use to show how Django is easily secured? Thanks in advance- Tyson Tate --~--~-~--~~~---~--~---

Spam Attack. GAH!

2006-09-18 Thread Tyson Tate
t solve the error. Even with the error, the spam gets through and is posted on my site. Where in the heck is Django getting "self.id" on a simple string variable? I'd appreciate any and all help because my blog is absolutely flooded with spam. :( -Tyson --~--~-~--~-

Re: Mac vs. PC for Django work.

2006-09-13 Thread Tyson Tate
g out code quickly. -Tyson On Sep 13, 2006, at 8:01 AM, keukaman wrote: > I am in the market for a notebook computer that I will be doing my web > design work on. Could I get some comments related to which is better > for Django work - P.C. or Mac, as well as some pros &

Re: Documentation on dispatcher/signals?

2006-09-11 Thread Tyson Tate
Don't forget to search the list archives! <http://groups.google.com/group/django-users/browse_thread/thread/ e4caa7923d0fa1d1/f0bf2f564d286082? lnk=gst&q=signals&rnum=1#f0bf2f564d286082> -Tyson On Sep 11, 2006, at 12:33 PM, cyberco wrote: > I can't find any

Re: Signals

2006-08-31 Thread Tyson Tate
lems, however, so it should be a good starting point. See also Ian's article on signals here: http://feh.holsman.net/articles/2006/06/13/django-signals -Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Using Django in a Cron Job

2006-08-09 Thread Tyson Tate
.py" from the cron job. I think some of my paths in my $PATH are redundant and you'll notice my fun little namespace collision with 'models', but it works well enough for me. 'fallingbullets' is the name of the project. Regards, Tyson --~--~-~--~~---

Re: Django Can't Find 'Tag' Class

2006-08-07 Thread Tyson Tate
reload when I do 'touch .htaccess', but it's since been corrected. Sounds like the solution to "why isn't Django loading this class?" is to make dang sure that Apache is being reloaded. Thanks for the tips! -Tyson --~--~-~--~~~--

Django Can't Find 'Tag' Class

2006-08-06 Thread Tyson Tate
ere's no problem with that file. All of my other feeds work fine, as well. Any other ideas? Regards, Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Off Topic: Mac software for database design?

2006-08-04 Thread Tyson Tate
k it's Omnigraffle what you're talking about. > > Lorenzo Nope - Omnigraffle is a Visio-like program. Search macupdate.com for "MySQL" and see what that turns up. -Tyson --~--~-~--~~~---~--~~ You received this message becaus

'WSGIRequest' object has no attribute 'user'

2006-08-02 Thread Tyson Tate
g at some old tickets, it looks like people had issues with this using user authentication on their site and fixed it by having "'django.contrib.auth.middleware.AuthenticationMiddleware'," in their MIDDLEWARE_CLASSES setting, but that isn't working for me. Thanks, Tyson --~--~-~--~---

Re: Django source editing offtopic

2006-08-01 Thread Tyson Tate
go bundles to help speed development: <http://code.djangoproject.com/wiki/TextMate> If you need a free editor, grab jEdit and spend some time configuring it and adding plugins. -Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: preparing rss feed

2006-08-01 Thread Tyson Tate
utting an RSS feed, it's wonderfully simple. Just go here: http://www.djangoproject.com/documentation/syndication/ Hope this helps! -Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Media and Admin Media URL Issues

2006-07-26 Thread Tyson Tate
Or some other way to do the equivalent instead of writing custom views for everything? Thanks for the tip. -Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Media and Admin Media URL Issues

2006-07-26 Thread Tyson Tate
Adding that to urls.py and removing the media/ rewrite rule from my .htaccess file seemed to do the trick. Thanks! -Tyson On Jul 26, 2006, at 1:22 AM, Aidas Bendoraitis wrote: > Do you have something like: > (r'^media/(?P.*)$', 'django.views.static.serve', &g

Media and Admin Media URL Issues

2006-07-26 Thread Tyson Tate
paste.e-scribe.com/881/ settings.py: MEDIA_ROOT = '/home/ohgoditb/django_projects/fallingbullets/media/' MEDIA_URL = 'http://fallingbullets.com/media/' ADMIN_MEDIA_PREFIX = 'http://www.fallingbullets.com/media/admin/' If anyone has any ideas, I'd love to hear them. Thanks in

Re: Django on win xp

2006-07-21 Thread Tyson Tate
Wait, Linux or XP? Regardless, you might want to read the documentation first: http://www.djangoproject.com/documentation/install/ -Tyson On Jul 21, 2006, at 9:52 PM, Rajeshwar Singh Jenwar wrote: > Hi All, > Can anybody provide step by step procedure for installing django on >

Re: CSS and JavaScript manager

2006-07-21 Thread Tyson Tate
event you from implementing your idea. I just don't see this sort of idea ever being truly feasible for a production site. Regards, Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Date-Based Generic View Oddities

2006-07-15 Thread Tyson Tate
the date_based.archive_day view, I have the same issue with "previous_day" as I do with previous_month. Why such tomfoolery? Perhaps I'm off my rocker and am missing something obvious here? Thanks in advance for any help/suggestions, Tyson Tate -- Tyson Tate - CalPoly Graphic Des

Re: Date and fileupload fields

2006-07-07 Thread Tyson Tate
calendar" or go to the css-d mailing list for more help. Regards, Tyson --~--~-~--~~~---~--~~ 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@google

Re: PIL/Freetype2 Problem

2006-07-06 Thread Tyson Tate
, as well. I'm not sure if it will take care of your FreeType issues, but it's worth a shot! -Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Don't make me wait!

2006-07-06 Thread Tyson Tate
hat you meant because that would just be silly. :) Please clarify. I'm always open to hearing new ways of doing things (even though I'm using a cron job, regardless). -Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Don't make me wait!

2006-07-06 Thread Tyson Tate
I'm already using signal-driven methods - I just raise the signal through a cron job instead of when the front page is loaded. This makes the project a little more portable, as well, which could come in handy someday, I guess. -Tyson --~--~-~--~~~---~--~~

Don't make me wait!

2006-07-05 Thread Tyson Tate
making the user visiting my front page wait until all the API calls are done running before the front page loads. Is there a way to avoid this by executing the synchronization methods in another thread or by somehow backgrounding them? Regards, Tyson Tate -- Tyson Tate - CalPoly Graphic Desi

Re: Broken File Uploads

2006-07-02 Thread Tyson Tate
On Jul 2, 2006, at 1:54 PM, Tyson Tate wrote: ... > image = models.ImageField(upload_to="media/portfolio", > height_field='height', width_field='width', core=True) ... That line was my problem. upload_to is not relative to the root, but to the

Broken File Uploads

2006-07-02 Thread Tyson Tate
I'm using the latest Django SVN on my MacOS X box with Python 2.4.3. Everything has worked so far, except for file uploads. I've got something like the following model: from django.db import models class PortfolioImage(models.Model): image = models.ImageField(upload_to="media/portfo

Re: Django, Trac and Svn?

2006-06-29 Thread Tyson Tate
owever, feel free to ask on this list. -Tyson On Jun 29, 2006, at 10:44 AM, Facundo Casco wrote: > Hi, I'm starting a new project with Django and I'd like to use Trac > (http://trac.edgewall.com/) with it. I have Trac installed and working > but I'm lost trying to ma

Re: Django t-shirts: your ideas wanted!

2006-06-27 Thread Tyson Tate
I second these. It'd be nice if they came in Django-green, as well. -Tyson -- Tyson Tate - CalPoly Graphic Design Student - Work: Graphic Designer (CalPoly Library) - Play: Mustang Band, CalPoly Triathlon Team, Kappa Kappa Psi (Iota Pi) On Jun 27, 2006, at 11:57 AM, Don Arbow

Re: Checking For Existing Rows

2006-06-27 Thread Tyson Tate
Ah - I'm from a Java background, so knowing that Exceptions are cheap in Python suits me just fine. Thanks for the tips, all! -Tyson -- Tyson Tate - CalPoly Graphic Design Student - Work: Graphic Designer (CalPoly Library) - Play: Mustang Band, CalPoly Triathlon Team, Kappa Kappa Psi

Checking For Existing Rows

2006-06-26 Thread Tyson Tate
he above in a better way. Thanks, Tyson -- Tyson Tate - CalPoly Graphic Design Student - Work: Graphic Designer (CalPoly Library) - Play: Mustang Band, CalPoly Triathlon Team, Kappa Kappa Psi (Iota Pi) --~--~-~--~~~---~--~~ You received this message because you

Re: Repetitive background tasks

2006-06-26 Thread Tyson Tate
well. On top of that, it doesn't rely on OS-specific tools to work. Maybe that would be a nice contrib app: a "fake" cron using the above method. Just a thought, anyways. -Tyson --~--~-~--~~~---~--~~ You received this message because you are

Re: a easy way of orderlist?

2006-06-22 Thread Tyson Tate
nctionality on your own. > > Adrian Or, save yourself a bunch of time and just do it up with some nice JavaScript: http://www.kryogenix.org/code/browser/sorttable/ -Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Free Comments Documented

2006-06-17 Thread Tyson Tate
heck it out and help polish it! http://code.djangoproject.com/wiki/UsingFreeComment Peace out, Tyson --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Inline Editing in Admin Interface

2006-06-16 Thread Tyson Tate
On Jun 16, 2006, at 3:02 PM, Joseph Kocherhans wrote: > Get rid of the inner Admin class on your tag object. That's what > causes it to show up on the main admin page. > > Joseph If I do that, then I can't add any objects inline. Does Django not allow o

Re: "tuple' object has no attribute 'get'"

2006-06-16 Thread Tyson Tate
On Jun 16, 2006, at 2:46 PM, Don Arbow wrote: > > Just a hunch. You have a comma at the end of the fields tuple in your > Admin inner class (line 36 according to the pastebin). Maybe that's > it? > > Don I deleted the comma, but I still get

Inline Editing in Admin Interface

2006-06-16 Thread Tyson Tate
y inline edited from Entry's edit page. I've tried many of the usual methods given in the Docs (core=True, edit_inline=models.STACKED, etc.), but "Tag" still shows up in the main Admin page ("site.com/admin/") Surely this isn't impossible, right?

"tuple' object has no attribute 'get'"

2006-06-16 Thread Tyson Tate
Starting with the latest SVN, a fresh DB, and the following Model: http://django.pastebin.com/713796 I get a "tuple' object has no attribute 'get'" error whenever I try to add a new Post. Stack trace here: http://django.pastebin.com/713819