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

2007-12-12 Thread Tyson Tate
I submitted bug #6189 [1], but I thought I should ping django-users to see if anyone has encountered this before or knows of a workaround. In summary, despite adding "blank=True" to my fields, many of them throw IntegrityErrors when I try to save them with blank values in the admin

Re: css 404?

2007-08-03 Thread Tyson Tate
On Aug 3, 2007, at 2:29 PM, [EMAIL PROTECTED] wrote: > I have a template directory having home.html in it. home.html has > , but the > server always 404s the css _only_, whether it is written as home.css > or ./home.css. > Emphasizing here that home.html and home.css are in the same directory >

Re: Should I give up on dreamhost?

2007-07-23 Thread Tyson Tate
On Jul 23, 2007, at 11:23 AM, walterbyrd wrote: > From what I'm seeing on the message boards, it's a common > problem. [snip] > Now, some people are suggesting that I buy a third account > from WebFaction. This is getting old folks. Old and expensive. If it's clear on the message boards that

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

2007-07-22 Thread Tyson Tate
On Jul 22, 2007, at 12:15 AM, Alvin wrote: > Who may help me to design a software? I want an account number, the > password producer (because I do not have means to think of quite good > account number password) If I understand you correctly, I think you're looking for a random password

edit_inline and empty models

2007-07-21 Thread Tyson Tate
http://dpaste.com/14978/ I have Project and ProjectImage models. The goal is to allow me, while adding a Project object in the admin interface, to add a few related ProjectImage objects (anywhere from one to several). However, when adding a Project object, the empty ProjectImage rows get

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

2007-07-02 Thread Tyson Tate
:) -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. > Since my limited knowledge of

Re: Django Developer Needed

2007-06-21 Thread Tyson Tate
On Jun 21, 2007, at 5:11 PM, Noah Gift wrote: > I think your being a bit misleading. Of course you can use django > for a CMS. It certainly doesn't hurt that CMS was the problem > domain being addressed while Django was being written either. Just > take a look at 99% of the jobs on

Re: Pagination

2007-06-21 Thread Tyson Tate
Look at "next" and "previous" context variables. You can do: Next and Previous to get what you want, as long as you've set up the URL regexes properly in urls.py. You'll want to surround each of the above with an if block to check and see if you do, indeed, have a next or previous page

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? > > -justin > > (I only included

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/ -Tyson

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

2007-06-08 Thread Tyson Tate
es 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. Like Silly Putty. :) Regar

Re: Best Place To Start Learning Django/Python

2007-05-23 Thread Tyson Tate
Learning a bit of Python first helps. I'd start with the official Python tutorial: Then give the official Django tutorial a shot: Other than that, there's no better way to get started than by

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's going wrong here :/

Re: URLPattern - can't fetch a detail page

2007-05-18 Thread Tyson Tate
Your slug_field should be set to 'slug' because that's what you've named it in your RegEx: '^/(?P[-\w]+)/?$' So you want: (r'^/(?P[-\w]+)/?$', 'object_detail', dict(news_list_info, slug_field='slug')), or, conversely: (r'^/(?P[-\w]+)/?$', 'object_detail', dict (news_list_info,

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 guys have to >

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. --~--~-~--~~~---~--~~ You

Re: Admin, edit_inline, and saving

2007-05-16 Thread Tyson Tate
It'd be helpful if you supplied us with a few more details: 1. What is MEDIA_ROOT and MEDIA_URL set to? 2. What is the Picture object's ImageField;s "upload_to" attribute set to? 3. Did you define your own "get_absolute_path(self)" method in the Picture model? 4. What version of Django are

Loading JSON dump fails

2007-04-12 Thread Tyson Tate
I ran a JSON dump on one of my models and got the following: -- $ python manage.py dumpdata databases [{"pk": "3", "model": "databases.subject", "fields": {"slug": "boom", "title": "Boom"}}, {"pk": "2", "model": "databases.subject", "fields": {"slug": "more-testing", "title": "More

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

2006-10-18 Thread Tyson Tate
I've been getting the following error quite frequently from Django ever since I put up my Django site but haven't had the time to take a deeper look at it until now. Unfortunately, I'm at a loss as to what, exactly, is the problem here. --- Traceback (most recent call last): File

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 message

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

2006-09-27 Thread Tyson Tate
Thanks, again, to everyone who has been looking in to this issue. Russ' checkin (r3830) fixes the admin interface crash (w00t) and I am now able to add my Event objects with no problems. However, I am still getting the "iteration over non-sequence" error with the same model: Full Model:

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

2006-09-24 Thread Tyson Tate
[snip] Wow! Thanks to Russell, Malcom, and Jay for hopping on this so quickly. I'm glad to know that I've uncovered an ugly ol' bug. It's definitely a blocker for my current app, so I'll be eagerly watching (and helping, if I can) for a resolution to this. Unfortunately, getting

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

2006-09-23 Thread Tyson Tate
On Sep 23, 2006, at 12:45 AM, Malcolm Tredinnick wrote: > What happens when you reduce the example to something smaller? Does it > go away? What is the last thing you change before it goes away? If the > problem never goes away, you should end up with a two line example you > can paste in an

Crashing Default Manipulator with ForeignKey/ManyToMany Combo

2006-09-22 Thread Tyson Tate
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 this message

Django Security

2006-09-21 Thread Tyson Tate
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 --~--~-~--~~~---~--~~ You received

Spam Attack. GAH!

2006-09-18 Thread Tyson Tate
Hey fellow Djangoers- My site is currently being attacked by an awful spam bot and I'm quickly trying to implement Akismet spam filtering. I'm using Django 0.95 and am using the following code for Akismet: http://www.b-list.org/weblog/2006/07/16/django-tips-hacking-freecomment I followed

Re: Mac vs. PC for Django work.

2006-09-13 Thread Tyson Tate
Heck, why not get the best of both worlds: Get a MacBook or other Intel Mac. You can run the delicious UNIX-y goodness of MacOS X for real work and then drop in to Windows when you need to do whatever it is that people would want to do in Windows (get headaches?). Django works wonderfully

Re: Documentation on dispatcher/signals?

2006-09-11 Thread Tyson Tate
Don't forget to search the list archives! -Tyson On Sep 11, 2006, at 12:33 PM, cyberco wrote: > I can't find any documentation on dispatcher/signals. Is

Re: Signals

2006-08-31 Thread Tyson Tate
On Aug 31, 2006, at 8:54 AM, David Blewett wrote: > I know that I want to make use of signals in my project. I'm not sure > how to use them, though. It appears that the handling function has to > have arguments like this: sender, instance, signal, *args, **kwargs. > Can someone define these

Re: Django Can't Find 'Tag' Class

2006-08-07 Thread Tyson Tate
On Aug 6, 2006, at 8:12 PM, Malcolm Tredinnick wrote: > ... > > Have you changed the source code and not restarted something, or is it > ponting to an older directory of source? > > Regards, > Malcolm Ah - it turned out that Apache wasn't reloading whatever it needs to reload when I do 'touch

Django Can't Find 'Tag' Class

2006-08-06 Thread Tyson Tate
I'm trying to add in per-tag feeds for my blog, but for some reason Python refuses to "see" my Tag class, which is inside the same models.py file that my Entry class in. Every time I visit "/feeds/tag/slug", I get the following error: http://paste.e-scribe.com/1035/ Here's the related

'WSGIRequest' object has no attribute 'user'

2006-08-02 Thread Tyson Tate
I've been running the latest SVN of Django on my production server under Apache and FCGI. Occasionally, I've been getting error e-mails like so: -- Traceback (most recent call last): File "/home/ohgoditb/django_src/django/core/handlers/base.py", line 74, in get_response

Re: Django source editing offtopic

2006-08-01 Thread Tyson Tate
On Aug 1, 2006, at 3:44 PM, toth anna wrote: > Sorry for boring the list with a slightly offtopic question. > I saw that many of you are using a Mac. (i used it perhaps > twice in my life) > Last week i needed to edit several python files on a MiniMac > (without net, b), and i used

Re: preparing rss feed

2006-08-01 Thread Tyson Tate
On Aug 1, 2006, at 9:36 AM, a wrote: > preparing rss feeds > > i hav a table in postgres and it has title and body columns, i want to > create a rss file on the fly when this table is updated wat is the > best > way to get it done > thanks a lot If that table is part of your Django project,

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', > {'document_root': >

Media and Admin Media URL Issues

2006-07-26 Thread Tyson Tate
I'm having some rather befuddling problems with getting my media URLs working for . In my project's root, I have my regular media in "media/" and the admin media in "media/admin/". For some reason, I can't access anything under "media/". My server just gives

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 > Win XP on

Re: CSS and JavaScript manager

2006-07-21 Thread Tyson Tate
On Jul 21, 2006, at 3:19 PM, [EMAIL PROTECTED] wrote: > I'm thinking about making a simple JavaScript and CSS manager that > would look like this: > - It generates one JavaScript and one CSS file for a current > page/template This could get ugly fast when you take into account CSS cascading.

Re: Date and fileupload fields

2006-07-07 Thread Tyson Tate
On Jul 7, 2006, at 1:23 AM, bernadet wrote: > hii, > > I am writing my own forms, using manipulators and custom manipulators. > I have a date field and uploadimage field in one of the forms. > > I need to create a popup calendar for the date field in the html page, > and a button for the image

Re: PIL/Freetype2 Problem

2006-07-06 Thread Tyson Tate
On Jul 6, 2006, at 11:33 AM, Manuel Meyer wrote: ... > I installed Freetype 2.2.1 and PIL 1.1.5 and during PIL installation > it was metioned that FreeType is installed. What could be wrong. > > I am running Django 0.91 on Mac OS X 10.4.1 and Python 2.4.1 > > Thanks, Manuel PIL seems to have odd

Re: Don't make me wait!

2006-07-06 Thread Tyson Tate
On Jul 6, 2006, at 10:07 AM, mamcxyz wrote: > Why not put the messages in the database and read it from other side? I'm not sure I understand what you mean. Do you mean that I should take the API call responses and read them from the user-side with AJAX? I hope that's not what you meant

Re: Don't make me wait!

2006-07-06 Thread Tyson Tate
On Jul 6, 2006, at 12:07 AM, Malcolm Tredinnick wrote: > This sort of problem is why, when you brought this solution up last > month, a couple of us were still recommending doing this with cron or > some other system-level process, rather than hooking it into Django: a > transient process for

Don't make me wait!

2006-07-06 Thread Tyson Tate
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 Design Student

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 media/ directory.

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 =

Re: Django, Trac and Svn?

2006-06-29 Thread Tyson Tate
If you want to set up a SVN repository to use with trac, that's a question better answered by the SVN documentation here: And the trac documentation here: If you have Django-specific issues, however, feel free

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 wrote

Checking For Existing Rows

2006-06-27 Thread Tyson Tate
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 are subscribed

Re: Repetitive background tasks

2006-06-26 Thread Tyson Tate
On Jun 26, 2006, at 12:43 PM, Glenn Tenney wrote: > > [...] > 2) Also within your application, write a global function that (a) > immediately checks to see if it's the first time it's invoked each day > (or whatever interval), and then, if it is the first time, (b) does > all of the repetitive

Re: a easy way of orderlist?

2006-06-22 Thread Tyson Tate
On Jun 22, 2006, at 7:01 PM, Adrian Holovaty wrote: > On 6/22/06, momobear <[EMAIL PROTECTED]> wrote: >> hi, I use the generic view object_list to display my result, but >> now I >> want the result to be showed like the page in django admin-site, >> we can >> click the column to let it on

Free Comments Documented

2006-06-17 Thread Tyson Tate
I'm a strong believer is good documentation and there's a lot of places Django could use better documentation. I encourage everyone to add documentation to the wiki for things that aren't documented or have sparse documentation. I started with Django's free comments. Check it out and help

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 one to do this? -Tyson

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 the same error. -Tyson

Inline Editing in Admin Interface

2006-06-16 Thread Tyson Tate
I've been pestering the IRC channel, Googling like crazy, and reading the docs, but for some reason, I can't, for the life of me, find the answer to the following question: How do I allow, in something like the following model, for "Tag" to be inline edited and only inline edited from

"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 Any ideas? Thanks, Tyson