Re: Django-Subscription

2012-07-09 Thread shacker
On Monday, July 9, 2012 2:54:06 AM UTC-7, Pervez Mulla wrote: > > Hi... > > How can I make use Django_subscripation in my project...?? In my > application I want to give subscription option , > EX- If customers are subscribed to our product then they can able to > access all the data, Else the

Re: Custom Managers vs Custom QuerySets

2012-06-11 Thread shacker
On Saturday, June 9, 2012 6:13:58 PM UTC-4, mikegolf wrote: > > Hi, > what are pros / cons of extending Managers versus QuerySets? I'd like > to know which way is preferred and *why*. > Not enough info provided. Can you give us an example here? More info, or a demo of the two approaches

Re: cPanel Python/Django support

2012-05-02 Thread shacker
On Wednesday, May 2, 2012 2:52:09 AM UTC-7, Gabriel - Iulian Dumbrava wrote: > > Unfortunately to make it more useful to deploy django, some hosting > providers should stop providing CentOS with Python 2.4. I just got another > server with this flavour and I had to install my own version of

Re: Advice on installing Django in a fresh OSX Lion machine

2012-04-09 Thread shacker
On Monday, April 9, 2012 5:19:28 AM UTC-7, Paulo wrote: > > Im new both to Python and Django and I'm afraid of messing thins up > before I even start. > Lion ships with Python 2.7.1 but I see that 2.7.2 is available in the > official site. Should I download .dmg file from the site to update to

Re: Django 1.4: TypeError: get_db_prep_value() got an unexpected keyword argument 'connection'

2012-04-08 Thread shacker
On Saturday, April 7, 2012 8:02:46 AM UTC-7, Shawn Milochik wrote: > > >> > Field objects take 'connection' and 'prepared' kwargs in Django 1.4. It > sounds like you're using a custom field which was written before those > parameters existed, or perhaps you upgraded from a previous version and

Re: Is there a place for new Django specialized hosting?

2012-03-22 Thread shacker
Agreed - hosting of any kind is a tough business these days - it's become so commoditized that prices are rock bottom and customer expectations extremely high. And there are tons of Django-optimized hosts out there already - search for "django hosting" for listings and comparative sites before

Re: Why can't forms access the request object?

2012-03-12 Thread shacker
Thanks for the explanations Masklinn and dstuffte - this makes a lot more sense now. I guess I was thinking of this in more simplistic terms - I was assuming that a form is always invoked from a view, so naturally it would inherit the request object. I'm having trouble thinking of a use case

Re: Why can't forms access the request object?

2012-03-11 Thread shacker
On Sunday, March 11, 2012 6:24:30 AM UTC-7, skhohlov wrote: > > Of course form does not have access to the object. skholov - Thanks, but you misunderstand my question. Again, I know that forms don't have access to request, and again, I've got it working already (though with a different

Why can't forms access the request object?

2012-03-11 Thread shacker
I recently needed to access request.user in a form, and found that I couldn't. Found many articles describing ways to accomplish this, such as James Bennett's [1]. I did get it working, but I'm curious *why* the request object isn't accessible from forms as it is from views. Why do we need to

Re: Installing Django from GIT/Subversion - package dependency in virtual environment

2012-02-21 Thread shacker
Even easier, just pip install django or in requirements.txt, simply: Django To upgrade later: pip install --upgrade django ./s -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: effective adding records in Django site admin

2011-10-05 Thread shacker
If you want the ability to make copies of multiple records at once, or just want the "copy" option to appear at the top of the object list instead of having to click through into each record, it's pretty easy to set up an Admin Action. Here's one I use in a system that lets staffers duplicate

sitemap.xml and 'unknown timezone'

2011-09-29 Thread shacker
Django sitemaps worked fine on a previous server, and work fine in my development environment, but break in production on a new server, with: ValidationError: [u'Unknown timezone'] (traceback below) The docs don't mention anything about timezone configuration or dependencies:

Re: Using IGNORABLE_404_URLS

2011-09-29 Thread shacker
Thanks guys. Yes, after thinking about this more, there are really two things going on here: 1) Figuring out why entries in Django's IGNORABLE_404_URLS seem to be completely ignored. 2) Blocking bad behavior. Since most of these requests are bogus, #2 is really what I want. Set up a bunch of

Using IGNORABLE_404_URLS

2011-09-28 Thread shacker
Our Django sites get literally hundreds of bogus 404 requests per day. For example: Referrer: http://domain.edu/ Requested URL: /signup/ User agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;) IP address: 168.9.86.2 The "referrer"

Re: Too many TCP connections

2011-09-06 Thread shacker
Thanks for all the responses on this. After watching the error logs on the production server I saw tons of infinite redirect loops on calls for admin_media: "GET /admin_media/js/jqu///404.shtml/ HTTP/1.1" 302 - ... This wasn't immediately apparent since the admin *seemed* to look and

Re: Too many TCP connections

2011-09-02 Thread shacker
Hmm, appreciate the feedback, but we don't have KeepAlives enabled on our Django servers and it's never been a problem. And remember, the other Django site on the same server doesn't have the problem. As for serving lots of resources - we're just talking about viewing/saving seven User pages in

Too many TCP connections

2011-09-02 Thread shacker
This is not a database connection question, but a TCP connection problem. I've got two different Django sites on the same server (which I admin), each with their own similar vhosts and wsgi processes. The server uses ConfigServer firewall for automatic detection and firewalling of bad

Re: Django-Registration, How can a beginner work with this 3rd party App?

2011-08-16 Thread shacker
See also: django-profiles: The Missing Manual http://birdhouse.org/blog/2009/06/27/django-profiles/ (django-profiles and django-registration are close cousins; I always use them in combination with one another). ./s -- You received this message because you are subscribed to the Google Groups

Re: About user auth page

2011-08-04 Thread shacker
On Aug 3, 7:45 am, william ratcliff wrote: > I might also recommend using the django-registration package. I haven't built a Django site yet that didn't use the combination of django-registration and django-profiles. Would love to see the pair of them find their way

mod_wsgi on cPanel/WHM gets easier

2011-06-01 Thread shacker
If you run a cPanel/WHM server, and have manually compiled mod_wsgi in the past, you know that updating apache/php for the rest of your server is a pain, since the easy_apache build script is unaware of the custom mod_wsgi module and discards it during compilation. And since you have enabled

Re: How to create user on mobile app for Django site?

2011-05-31 Thread shacker
On May 31, 4:35 am, Ivo Brodien wrote: > What is the correct way to do the following: > > 1) Mobile App from which a user can create a user/profile on the Django site > 2) Allow authenticated users to create on the site and query personalized > data from the site My approach

Re: How to build a social network

2011-04-21 Thread shacker
On Apr 20, 4:23 pm, Rodrigo Ruiz wrote: > Hi, I'm a new programmer and I want to make a social network like > facebook or orkut. "social network" is a pretty vague term. I think you need to define the list of actual features you want the site to have and how they should

Force lowercase in Django-Taggit

2011-04-17 Thread shacker
I've just finished migrating my site's tagging system from django- tagging to django-taggit. Wrote up some notes on the migration process in case useful to anyone else: http://birdhouse.org/blog/2011/04/17/migrate-django-tagging-taggit/ But I still have two questions outstanding: 1) Unlike

Re: Is there any Open Source Django Newspaper CMS?

2011-03-23 Thread shacker
Django is used by a lot of newspaper / news sites, but they generally use it to build the CMS that fits their exact needs. That's kind of the point of using a framework like Django rather than a CMS like Drupal - you don't suffer from the "opinions" of the CMS, and instead use the tools provided

Re: Where to put generic Database Tables?

2011-03-23 Thread shacker
On Mar 22, 10:44 am, Andre Lopes wrote: > Hi, > > I'm trying to start with Django. > > I'm developing an App. This App is called "Directory" and will store > info about websites. > > I must to create a database table called "Genders", but this is a > generic database table

Re: Filtered drop down choice django

2011-02-01 Thread shacker
On Jan 31, 6:40 am, sushanth Reddy wrote: > I am trying to create a dynamic filtered drop down choice fields,i gone > through below blog but it confusing,can any one suggest easy way to do this > in django. Do you mean in the admin or on your live site? If in the admin,

Re: Styling help_text

2011-02-01 Thread shacker
Thanks for the info, and for the doc patch Preston. Back to manual mode for now :) ./s On Feb 1, 6:59 am, Preston Timmons wrote: > Hi Scot, > > Unfortunately, the patch to that ticket was committed after 1.2 was > released. That feature isn't available until 1.3 or in

Re: Django based issue tracker

2010-11-10 Thread shacker
Django > based issue tracker? I made this one, and use it with several different teams: https://github.com/shacker/django-todo Multi-user/multi-group (ties into Django Users and Groups), team- oriented, searchable, all the usual features (but doesn't tie into code repos like Trac does)

Re: What does an ideal django workflow setup look like?

2010-10-23 Thread shacker
On Oct 22, 10:09 pm, Kenneth Gonsalves wrote: > 5. Note: settings.py is not put under version control as this holds > sensitive information and paths differ according to the server it is on. > I create a default.settings.py which has the sensitive information > removed. That

Re: Comments and cascade delete

2010-10-21 Thread shacker
On Oct 21, 4:31 am, David De La Harpe Golden wrote: > > Hmm.  Appears to work okay for me (only tested Django-1.1.2), at least > for instance.delete().   Perhaps you could try the operation directly at > ./manage.py shell to see if there's anything odd going on: >

Re: Comments and cascade delete

2010-10-21 Thread shacker
On Oct 19, 9:42 am, David De La Harpe Golden wrote: > > So to get deletion behaviour you want, you need to define a reverse > generic relation back to comment on your model for django's deletion > cascade to follow the deletion in the generic case.  On your own

Comments and cascade delete

2010-10-19 Thread shacker
If Django comments are attached to a record (like a news item) and that item is deleted, the comment remains in the database. In other words, comments don't get cascade delete treatment like foreign key relationships do. This leads to A) database clutter and B) breakage when you do things like

Re: django-facebook

2010-10-10 Thread shacker
On Oct 10, 1:34 am, Sævar Öfjörð wrote: > I'm using Django Socialregistration for this > purpose.http://github.com/flashingpumpkin/django-socialregistration > > If the user is already logged in and clicks the facebook button, the > existing account is simply linked to the FB

django-facebook

2010-10-08 Thread shacker
I chose django-facebook to allow site authentication via Facebook Connect because it seems to be alone amongst the various solutions in knowing how to smartly connect existing site accounts to FB logins rather than blindly creating new accounts (if you have users who sometimes log in the

Re: Strange 404s

2010-10-07 Thread shacker
On Oct 6, 2:51 pm, Daniel Roseman wrote: > Yes, there are all sorts of bots around, and the referrer is easy to > fake - it's just an HTTP header. I quite frequently get reports with > referrers that have never even existed on my site. Would it make sense for the Django

Re: django graphs

2010-10-06 Thread shacker
On Oct 6, 3:24 am, ashy wrote: > Hi All, > > I want to create line graph in django. I have installed django graphs, > but there aren't sufficient examples for line graphs in the examples > folder.  Any ideas how should I go ahead for graphs in django? Emit JSON from your

django-todo relaunched

2010-09-28 Thread shacker
django-todo is a multi-user, multi-group, pluggable todo-list/ ticketing system for individuals and organizations. The project, formerly on google code, has been relaunched on githhub: http://github.com/shacker/django-todo with lots of bugs fixed and features added recently. Includes a setup.py

Re: Please add tag for Django 1.2.3 release

2010-09-13 Thread shacker
On Sep 13, 8:19 am, shacker <shac...@birdhouse.org> wrote: > Hmm, the ticket is marked fixed, but the repo is still at 1.2.1. This > is not good. 1.2.2 is a security release, and we should be able to use > the official distribution mechanism (svn) to update our sites > immed

Re: Please add tag for Django 1.2.3 release

2010-09-13 Thread shacker
On Sep 12, 12:12 pm, creecode wrote: > Hello all, > > I asked and we > received! :-)  Thanks Russell! Hmm, the ticket is marked fixed, but the repo is still at 1.2.1. This is not good. 1.2.2 is a security release, and we

Re: Django 1.2.3 released

2010-09-11 Thread shacker
On Sep 11, 12:00 am, James Bennett wrote: > To correct several issues in the 1.2.2 package earlier this week, > tonight the Django team has issued Django 1.2.3. Details are available > on the Django weblog: > It looks like there is no svn tag for 1.2.3:

Re: virtualenv and standalone scripts

2010-08-24 Thread shacker
On Aug 23, 1:54 pm, Oivvio Polite wrote: > Following advice on this list I've moved to virtualenv+pip to manage my > django stack, which so far is working out nicely. > > But what should I do about standalone scripts? Say I have a project You need to load up the current project

Re: Encoding with {% url %} tag

2010-08-16 Thread shacker
On Aug 15, 9:34 am, aa56280 wrote: > > Does the view code in app.views.blah know what to do with the > > iriencode'd values? > > What does that have to do with anything? More accurately, I should have asked "Does the URL definition and view for app.views.blah know what to do

Re: content_object and comments

2010-08-16 Thread shacker
On Aug 16, 3:17 am, bruno desthuilliers wrote: > > Of course. As the error message says, 'c' is here a queryset, not a > model object. If you want to retrieve a single model object, you have > to use manager.get, not manager.filter, ie: Sorry about that brain fart

content_object and comments

2010-08-16 Thread shacker
I'm trying to figure out why this works: >>> comments = Comment.objects.all() >>>[c.content_object for c in comments] [returns a list of the objects the comments are attached to] But this doesn't: >>> c = Comment.objects.filter(id=111) >>> c [] >>> c.content_object Traceback (most recent call

Re: Encoding with {% url %} tag

2010-08-13 Thread shacker
On Aug 12, 9:22 am, aa56280 wrote: > I'm using the url tag like so: {% url app.views.blah var1, var2 %} > > var1 and var2 need to be encoded, using the iriencode filter, so I > tried this: {% url app.views.blah var1|iriencode, var2|iriencode %} > > That doesn't do anything

Re: New server set up

2010-08-10 Thread shacker
There are some lengthy discussions and lots of links on setting up Django with WHM/cPanel here: http://forums.cpanel.net/f5/django-python-cpanel-71229-p2.html And this thread: http://forums.cpanel.net/f145/django-support-146541.html is the "official" Django-on-cPanel feature request -- weigh

Re: Come on, share your django powered sites with others.//Fwd: A tornado powered site to show any project powered sites(open source)

2010-08-08 Thread shacker
On Aug 7, 9:50 pm, Stone Puzzle wrote: > Django powered sites list  http://django.poweredsites.org A much more complete database is at http://www.djangosites.org/ ./s -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: HttpResponseRedirect

2010-08-06 Thread shacker
Why not use the Messages framework for this? http://docs.djangoproject.com/en/dev/ref/contrib/messages/ ./s -- 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

Re: Jquery-ui in admin: c is undefined

2010-08-05 Thread shacker
On Aug 5, 5:22 am, David De La Harpe Golden wrote: > > In theory you could probably "re-conflict" it, i.e. grab the > django.jQuery and put it back into the global scope as >  Query (and maybe $ - jquery-ui uses jQuery) ...but I wouldn't > recommend it, just look

Re: MySQL error -1

2010-07-29 Thread shacker
On Jul 29, 10:03 am, Dennis Kaarsemaker wrote: > If you do 'select @@tmpdir', it'll probably say /tmp as that is the > default. You can change this in /etc/my.cnf if you want. Yep, that was the fix I applied (see above). So far everything's working fine. Thanks for all

Re: MySQL error -1

2010-07-28 Thread shacker
Well, I think I've got a culprit on this one. I was seeing occasional "/tmp is out of space" messages from the server lately as well, and wondered whether these two things might be connected. It's a VPS and the /tmp partition is locked at 100MBs - can't be made larger. So I reconfigured mysql to

Re: MySQL error -1

2010-07-28 Thread shacker
On Jul 27, 2:49 pm, Dennis Kaarsemaker wrote: > Are the tracebacks all the same? Can you share a traceback? Sure, here's one (search/replaced to make it generic): http://dpaste.com/222645/ It's happening on various (and unrelated) pages, but the tracebacks are all

Re: MySQL error -1

2010-07-27 Thread shacker
On Jul 27, 3:10 am, Dennis Kaarsemaker wrote: > > Start with checking/repairing the table that causes this error to be > thrown. All tables analyzed, optimized, and repaired. No errors found. But the " error -1 from storage engine" reports continue a few minutes later

MySQL error -1

2010-07-27 Thread shacker
One of my Django sites has been throwing occasional 500 errors, I believe related to mysql: OperationalError: (1030, 'Got error -1 from storage engine') I'm never able to catch it in the act - I just see the 500 email reports. This is not connected to any particular page - it seems to happen to

Re: What goes in 500.html?

2010-07-25 Thread shacker
Neither 500 nor 404 errors will show up in their respective templates when debug=True. This can make things tricky if your local media serving is set up like this: if settings.DEBUG: urlpatterns += patterns('', ( r'^media[/]+(?P.*)$', 'django.views.static.serve',

Re: Which Python are people using on OSX?

2010-07-20 Thread shacker
I had to set up Django + MySQL + PiL environments on two machines - one brand new and the other being upgraded from Leopard. The upgrade machine was a big hassle - all the old MacPorts and other libs in all the non-standard locations get in the way and create hidden problems, but everything went

Re: cleaning html with bleach

2010-06-30 Thread shacker
On Jun 30, 12:00 am, Sam Lai wrote: > Nice find - I did pretty much the same thing, but using lxml.Cleaner. > This seems more configurable; I'm probably going to change mine over > to this instead. I needed to allow public rich text input on bucketlist.org so had to

Re: Seeking Django vs. Joomla comparison

2010-06-15 Thread shacker
On Jun 15, 11:43 am, Torsten Bronger wrote: > First you need a functional specification for your project, > i.e. "must have"'s and "nice to have"'s.  Size and agility of the > community as well as documentation are important, too.  Then you can > filter a little

Re: Seeking Django vs. Joomla comparison

2010-06-15 Thread shacker
On Jun 15, 3:50 am, justin jools wrote: > The previous author is right Django is a framework to build systems > and not an already built system like a Content Management System, like > Joomla. If you do want a comparison you have to compare a Django built > CMS like

Re: CSRF token not adding hidden form field

2010-06-11 Thread shacker
On Jun 10, 8:41 pm, Joel Klabo wrote: > yeah, still 403. CSRF token missing or incorrect. Not to state the obvious, but are you positive you're working with the right set of templates? I only ask because this happened to me recently - the CSRF tokens not showing up in the

New Django site: bucketlist.org

2010-06-06 Thread shacker
Hi all - Wanted to let you know about a new Django site I've just launched: http://bucketlist.org/ Come log all those things you want to accomplish before you die :) And here are the construction notes for Django nerds: http://birdhouse.org/blog/2010/06/06/bucketlist-django/ Thanks for all

Re: Item is already being moderated

2010-05-31 Thread shacker
On May 31, 1:41 am, shacker <shac...@birdhouse.org> wrote: > I get "The model 'item' is already being moderated."  I haven't set up > moderation before, so it's not clear what's triggering this. I do have > an "enable_comments" field on the Item mod

Re: django-registration custom fields

2010-05-31 Thread shacker
Pankaj - The fact that you're using a save() method here means that you're using instructions referring to an older version of django- registration. But you're probably actually deploying a current version, which doesn't allow for that. The upgrade guide says: "Previously, the form used to

Item is already being moderated

2010-05-31 Thread shacker
Per the comment moderation docs at: http://docs.djangoproject.com/en/dev/ref/contrib/comments/moderation/ : # models.py from django.contrib.comments.moderation import CommentModerator, moderator class ItemModerator(CommentModerator): email_notification = True enable_field =

Re: django-registration custom fields

2010-05-29 Thread shacker
See also: http://birdhouse.org/blog/2009/06/27/django-profiles/ ./s -- 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 email to

Re: Redirect from a called function

2010-05-26 Thread shacker
t; > def foo(request): >     return bar() > > Regards, > Rendy Anthonyhttp://solyaris.wordpress.com > > > > On Thu, May 27, 2010 at 9:50 AM, shacker <shac...@birdhouse.org> wrote: > > I'm trying to figure out why HttpResponseRedirect doesn't work when > > ca

Redirect from a called function

2010-05-26 Thread shacker
I'm trying to figure out why HttpResponseRedirect doesn't work when called from within another function. For example, this works, of course: def foo(request): return HttpResponseRedirect('"http://example.com;) But this does not: def bar(request): print "In bar" return

Re: statistics, reporting, charts for django

2010-04-27 Thread shacker
On Apr 27, 2:18 am, Georg Holzmann wrote: > Hallo! > > My question: is there a django application which I could reuse (or > learn from) or which could help in the development ? > It would be nice to have a dashboard to put charts, statistics, ... > onto and an easy interface to

Re: Django-registration with django-profile

2010-04-03 Thread shacker
On Apr 3, 9:21 am, Alessandro Ronchi wrote: > > I solved with a custom django-registration backend with a custom form. > > The form save directly to profile model, and I don't need > django-profiles, because it's unuseful. > > With that solution I can ask users all

Re: Django-registration with django-profile

2010-04-03 Thread shacker
On Apr 3, 2:39 am, Alessandro Ronchi wrote: > I've made a profile model and attached it to django-profile app that > works correctly  (it shows /profiles/create/ with the form). > > I need to put together that profile model with django-registration, so > when a user

Re: Email address in registration form

2010-03-18 Thread shacker
On Mar 17, 8:01 pm, Wiiboy wrote: > Hi guys, > I'm using a combination of the UserCreationForm and my own ModelForm > of my Profile model to create a registration form.  I want to get > users' email addresses, however, that seems to be a field in > contrib.auth.User, so it

Re: Treat two fields as one in a queryset

2010-02-21 Thread shacker
Thanks for the suggestions. The "convert to list" approach sounded appealing, but I had to get back a queryset since this was for an RSS feed. After reading up more, finally decided it might actually make more sense to go with a bit of denormalization and create a "combined_date" field on the

Treat two fields as one in a queryset

2010-02-20 Thread shacker
Given a model like: class Item(models.Model): title = models.CharField(max_length=140) created_date = models.DateTimeField(default=datetime.datetime.now) completed = models.BooleanField(default=False) completed_date = models.DateTimeField(blank=True,null=True) ... I want to

Re: Subject line in django-contact-form

2009-12-29 Thread shacker
On Dec 29, 6:42 pm, James Bennett wrote: > > If this really bothers you, it's trivial to set up your own > contact-form class which collects a subject line as well. Trivial depending on your level of experience :) For benefit of others, here's how I solved it: 1) In my

Re: Subject line in django-contact-form

2009-12-29 Thread shacker
On Dec 29, 6:03 pm, Rolando Espinoza La Fuente wrote: > > The "subject" is not intended to be filled with user input through the web > form. Hmm, I find that odd. It's standard practice to let the user enter the subject for a contact form. I wouldn't want my inbox filled

Subject line in django-contact-form

2009-12-29 Thread shacker
The docs and code for ubernostrum's django-contact-form imply that the app includes a Subject field by default. But putting {{form}} in contact_form.html only gives you name, email address, and message fields. It's not clear to me those fields are showing up but the Subject field is not. Is

Re: Making the case for Django (vs. Drupal)

2009-11-15 Thread shacker
On Nov 12, 4:56 pm, Kenneth Gonsalves wrote: > >http://birdhouse.org/blog/2009/11/11/drupal-or-django/ > > looks like you have missed out on security - count the number of critical > holes in drupal over the past year with the one hole in django in the past 4 > years. btw, I

Re: Making the case for Django (vs. Drupal)

2009-11-11 Thread shacker
I just wanted to thank everyone for their excellent contributions to this thread. Sorry I got side-tracked for a while. I've just put up a pretty complete draft of a post on this topic, written with decision makers (managers, supervisors) in mind. It's still probably somewhat technical for that

Re: Making the case for Django (vs. Drupal)

2009-10-31 Thread shacker
On Oct 31, 10:42 am, Andy McKay wrote: > One key thing to remember is that Django and Drupal (and the other   > things you mentioned) are quite different things. You are comparing   > apples to oranges which makes the sell harder. To clarify - I'm very aware that one is a

Making the case for Django (vs. Drupal)

2009-10-31 Thread shacker
At the university where I work, there is a LOT of momentum behind Drupal. A large and active users group, and dozens of departmental sites running it. I've succeeded in building a few departmental sites with Django but still feel like it's an uphill battle convincing managers to agree to go with

Re: Custom template tag problem: "No module named models"

2009-10-01 Thread shacker
On Oct 1, 4:00 pm, Karen Tracey wrote: > > Yes, you must simply ensure you name things in such a way that the models > module you want to access is not hidden by something else. The original > problem noted in the thread you reference resulted from re-using the >

Custom template tag problem: "No module named models"

2009-10-01 Thread shacker
Google apparently won't let me reply to an older thread: http://groups.google.com/group/django-users/browse_thread/thread/94239f017df4b12f so starting a new one. I too was hitting the "No module named models" problem when creating a template tag. I had the tag working perfectly when it

formfield_for_dbfield and ManyToMany

2009-04-21 Thread shacker
I have a question about using the new formfield_for_dbfield with Django 1.1 beta 1. In this example I'm trying to filter the list of users that appears in a "speakers" field in the admin, where speakers is speakers = models.ManyToManyField(User) Lacking docs, I've modeled it after the way I've

Re: Two projects, one admin, filebrowser

2009-04-16 Thread shacker
On Apr 15, 12:37 am, patrickk wrote: > ### if your intranet-site and your public-site are on the same server > you could maybe use a symlink as well. > ### you could also "hack" the upload-function. define a second upload- Ah, right - by just symlinking the upload dir

Two projects, one admin, filebrowser

2009-04-14 Thread shacker
We're building an intranet and a public site that share a lot of data but without shared views. Therefore we're building them as two distinct Django projects connecting to a single shared database, with shared apps. To reduce confusion, the contrib.admin is only enabled on the intranet side, not

Re: Survey systems

2009-03-12 Thread shacker
On Mar 11, 5:10 pm, shacker <shac...@birdhouse.org> wrote: > As far as I can tell, django-survey is the only pluggable survey app > available for Django right now. It's off to good start, but is still > very buggy, Just wanted to say thanks to yann.malet, who jumped in last

Survey systems

2009-03-11 Thread shacker
As far as I can tell, django-survey is the only pluggable survey app available for Django right now. It's off to good start, but is still very buggy, and lacks a lot of the reporting tools and field options found in competing apps for other frameworks/CMSs. Unfortunately some of the bugs I filed

Re: Best practices for multiple sites

2009-01-13 Thread shacker
On Jan 12, 3:05 pm, felix wrote: > I'm running 3 sites on a shared db right now. > > I would say your option 2 Thanks for the feedback Felix. My initial concern was that two projects sharing a database would not have any awareness of one another and that things could

Best practices for multiple sites

2009-01-12 Thread shacker
We're setting up both an intranet and a public site that will sit on top of the same database. The two sites will share much content, but will have different designs, different media, and different overall purposes. There won't be much in the way of truly shared views, despite the need for shared

Re: order of apps in the admin panel

2008-10-24 Thread shacker
> On Oct 13, 11:00 am, Vokial <[EMAIL PROTECTED]> wrote: > > > Hello! > > > Is there a way to change the order of the applications shown in the > > admin page? If i'm not wrong it used to be the order in which the > > applications were written in the INSTALLED_APPS but now it seems to > > follow

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-24 Thread shacker
On Sep 24, 4:34 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > If however you have used in Apache configuration the ErrorDocument > directive for 404 at some point, possibly by enabling multi language > custom error documents, then when the 404 occurs, rather than > returning an internally

Announcing django-todo

2008-09-16 Thread shacker
I'd like to announce my first Django app, a pluggable multi-user / multi-group task manager : http://code.google.com/p/django-todo/ It actually went up over the weekend, but I've just updated it with a bunch of bug fixes and a move of templates into the app dir. Code review and comments welcome

Re: Best distribution practices for pluggable apps?

2008-09-16 Thread shacker
On Sep 15, 9:48 pm, Erik Allik <[EMAIL PROTECTED]> wrote: > There's a topic in this group about general guidelines to packaging > and distribution of pluggable apps. Thanks Erik. Here is the wiki page with guidelines in formation:

Best distribution practices for pluggable apps?

2008-09-15 Thread shacker
I'm building a pluggable app and getting ready to push it out. I'm trying to figure out the best way to distribute templates and media (css, js, images) with it. My initial approach was to provide a "samples/templates" and "samples/ media" within the dist but outside of the app, and let