Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Alec Taylor
Thanks, I didn't know of the lightBird site. -- 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 this group, send email to

Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Alec Taylor
Thanks (also, apologies for replying to these so late, I thought I was subscribed but I was only a member... n00b mistake, well I'm getting them as they arrive now) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on

Re: Video conference on django app

2012-01-16 Thread Alec Taylor
You could probably integrate something with BBB, or you could use this: Talk to Experts: This is an extension of Video Office project, that allows you to also search for experts based on a topic, see their calendar, sign up to talk to them in their calendar, and video chat with them in real-time.

Re: Alternatives to celery

2012-01-16 Thread Alec Taylor
Looking for an alternative to celery? — Have you considered carrot? :P -- 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 this group, send email to

Open-source or closed-source for SaaS?

2012-01-15 Thread Alec Taylor
, couldn't a competitor just download my project and offer it at a cheaper fee per/month? If I open-source, will that increase or decrease my revenue? To reiterate my question: Should I open-source the project, or keep it closed-source? Thanks for the advice, Alec Taylor -- You received

Re: Selecting an E-commerce Application

2012-01-15 Thread Alec Taylor
I hadn't heard of Plata. The two main ones are Satchmo and LFS. There's also the up-and-coming django-shop which has a better architecture than the others. On Sun, Jan 15, 2012 at 5:48 PM, Swaroop Shankar V wrote: > Hello All, > > I need to integrate an e-commerce

Re: Social conference website?

2012-01-12 Thread Alec Taylor
> There's https://github.com/pinax/symposion but i'm not sure what you mean by > "social". > > On Thursday, January 12, 2012 at 1:18 PM, Alec Taylor wrote: > > Good morning, > > I am building up a social-conference website in Django for a > university clubs' comedy-

Social conference website?

2012-01-12 Thread Alec Taylor
and paraphernalia sales through a PayPal gateway • Document collaboration area (built off askbot) for Writers I have seen a variety of Django-based conference websites. Which would you recommend I build off to ascertain the aforementioned features? Thanks for all suggestions, Alec Taylor -- You received

Completely decoupled development

2012-01-11 Thread Alec Taylor
and display a dashboard with certain elements of each View. Given the limited information I have given you, would you recommend this method of development? - Do you have recommendation on how we would link everything to a View dashboard? Thanks for all suggestions, Alec Taylor -- You received

Re: Does anyone know any blogs that write about how to quickly install and deploy a django application on Amazon EC2?

2012-01-11 Thread Alec Taylor
http://pragmaticstartup.wordpress.com/2011/04/02/non-techie-guide-to-setting-up-django-apache-mysql-on-amazon-ec2/ -- 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

Re: How many Django web pages does it take . . .

2012-01-06 Thread Alec Taylor
What you are talking about is a form. Form: https://docs.djangoproject.com/en/dev/topics/forms/ Autocomplete: https://code.djangoproject.com/wiki/AutoCompleteSolutions Unique fields: https://docs.djangoproject.com/en/1.3/ref/forms/validation/ On Sat, Jan 7, 2012 at 11:56 AM, Bill Beal

virtualenv wrecked my Django+modules install

2012-01-05 Thread Alec Taylor
t call last): File "", line 1, in ImportError: No module named django Does this mean I need to install everything required by my project all over again? - If so, should I take a virtualenv approach (and what would the advantages be of doing so)? Thanks for all suggestions, Alec Taylor

Re: Cheap Django hosting?

2012-01-04 Thread Alec Taylor
some pretty beefy processors). Scaling a process to > multiple dynos is when the $0.05/hr charge starts (essentially adding > another server behind a load balancer). > > > > -- > Kenneth Reitz > > On Wednesday, January 4, 2012 at 10:20 PM, Alec Taylor wrote: > > On Thu,

Re: Cheap Django hosting?

2012-01-04 Thread Alec Taylor
I just got my free (beta) invite to Epio: You set monthly limits on each resource, and we'll never charge you for more than that. Each app comes with a free dynamic instance, 5GB of free bandwidth and 2GB-months of free disk space. An instance is similar to a single system task — it could be a

Re: Cheap Django hosting?

2012-01-04 Thread Alec Taylor
On Thu, Jan 5, 2012 at 4:44 AM, Kenneth Reitz wrote: > You could easily run that on Heroku, and it would cost you $0. > I don't understand, why would it cost $0 on Heroku? I checked http://heroku.com/pricing and it seems to cost. -- You received this message because you

Re: Error: No module named debug_toolbar

2012-01-03 Thread Alec Taylor
inax>manage.py syncdb Error: No module named debug_toolbar > On Tue, Jan 3, 2012 at 12:31 PM, Alec Taylor <alec.tayl...@gmail.com> wrote: >> >> Unfortunately I keep getting this error, no mater what I do. >> >> Here's what I've attempted: http://pastebin.com

Error: No module named debug_toolbar

2012-01-03 Thread Alec Taylor
Unfortunately I keep getting this error, no mater what I do. Here's what I've attempted: http://pastebin.com/jcrSSYvd How do I solve this error? Thanks for all suggestions, Alec Taylor -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Cheap Django hosting?

2012-01-02 Thread Alec Taylor
Try from this interface: https://groups.google.com/forum/#!forum/django-users (it'll make you join, then you'll be able to send to that address directly from your Inbox) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Cheap Django hosting?

2012-01-02 Thread Alec Taylor
Webfaction seems to be the best so far, offers lots of features, lots of space+memory and is around $6 a month. On Tue, Jan 3, 2012 at 8:34 AM, zzeus <gel...@gmail.com> wrote: > webfaction.com > > On 2 янв, 13:49, Alec Taylor <alec.tayl...@gmail.com> wrote: >> Good a

Re: User-set domain-prefixes, i.e. myname.googlegroups.com

2012-01-02 Thread Alec Taylor
On Mon, Jan 2, 2012 at 5:27 AM, creecode <creec...@gmail.com> wrote: > Hello Alec Taylor, > > I've done something like this at one of my websites. > > The basic steps I use are gather the info in a form. > > On form submit the info goes into a website registration data

Cheap Django hosting?

2012-01-02 Thread Alec Taylor
Good afternoon, I'm looking for some cheap Django hosting, to host all my test sites. My production sites will be have more expensive, more reliable, faster servers+sites; but it would be good to have a cheap host for prototypes. Know of a good one? Thanks for all suggestions, Alec Taylor

Re: ERP with Supply chain management (incl. POS) and Customer relationship management — What's available?

2012-01-02 Thread Alec Taylor
On Mon, Jan 2, 2012 at 7:39 PM, Venkatraman S <venka...@gmail.com> wrote: > > On Thu, Dec 15, 2011 at 12:13 AM, Alec Taylor <alec.tayl...@gmail.com> > wrote: >> >> Which libraries (or projects even) will provide the best base for >> building this off? >>

User-set domain-prefixes, i.e. myname.googlegroups.com

2012-01-01 Thread Alec Taylor
of this (i.e. DNS) outside the scope of Django, but there would be a good portion of it possible within Django. Thanks for all suggestions, Alec Taylor -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Good notation for showing MVC interactions (i.e. Django)

2011-12-29 Thread Alec Taylor
An example of a BPMN2 diagram with swimlanes, which I created for a project: http://i40.tinypic.com/262r6nr.jpg What I am looking for is something suited towards showing architecture bounds and the interactions between each section of MVC. > I find that when thinking something through at the

Good notation for showing MVC interactions (i.e. Django)

2011-12-29 Thread Alec Taylor
this, and that there would be a more suitable one for this. Thanks for all suggestions, Alec Taylor -- 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 this group,

Re: (Re)Learning Django

2011-12-24 Thread Alec Taylor
Maybe go through the tutorials here: https://docs.djangoproject.com/en/dev/intro/tutorial01/ Should be a quick refresher, and you'll remember all :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Which IDE should I use for Django?

2011-12-19 Thread Alec Taylor
I am testing each of the ones thus far recommended (even though I hate Eclipse with a vengeance :3). My results you'll find succeeding: [pun intended!] *PyCharm* PyCharm seems good (albeit Java), achieves better code-completion than ST2 through indexing. Unfortunately it doesn't seem to recognise

Which IDE should I use for Django?

2011-12-19 Thread Alec Taylor
, which they still haven't integrated. So I am looking at alternatives :) Thanks for all suggestions, Alec Taylor -- 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 unsubs

Re: Creating websites like Amazon/Ebay using Django

2011-12-16 Thread Alec Taylor
I'm great at design, at the level of i.e. Balsamiq Mockups. It just takes me too long to build it from scratch in CSS+HTML+JS to get from wireframe to proper design. I am building it from satchmo as base, but am looking for other libraries to integrate in order to be DRY-er. Reuse FTW! But I

GMail/Hotmail style checkbox drag-and-drop for Satchmo product groups

2011-12-16 Thread Alec Taylor
Good afternoon, I am considering building a GMail/Hotmail style checkbox drag-and-drop for Satchmo product groups. e.g.: http://i42.tinypic.com/110kwfk.png What do you think of this design? How would I go about building this in Satchmo? Thanks for all suggestions, Alec Taylor FYI: I'd

Re: Creating websites like Amazon/Ebay using Django

2011-12-16 Thread Alec Taylor
Also satchmo http://www.satchmoproject.com/ On Fri, Dec 16, 2011 at 9:43 PM, Ivo Brodien wrote: > and keep in mind, that you don’t have to reinvent the wheel. There are > open source solutions for shops: > > Like: http://www.getlfs.com/released-06-beta-1 > > cheers > > On Dec

Re: Django Persistent DB connections - A different approach

2011-12-14 Thread Alec Taylor
No reason you can't ACID the whole thing Important info: http://en.wikipedia.org/wiki/Concurrency_control#Methods On Thu, Dec 15, 2011 at 5:18 AM, akaariai wrote: > A quick warning about your approach: if you use that in multi-threaded > environment, you are toasted. You

ERP with Supply chain management (incl. POS) and Customer relationship management — What's available?

2011-12-14 Thread Alec Taylor
suggestions, Alec Taylor -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. For mo

Re: ERP in DJango; what's available? — I'm thinking of writing a DJango wrapper to OpenERP

2011-12-14 Thread Alec Taylor
>On Thu, Dec 15, 2011 at 4:24 AM, Antoni Aloy wrote: > I think people from zikzakmedia has done some work : > http://www.zikzakmedia.com/blog/zoook-openerp-e-sale-tool > It looks like what I'm looking for (well I also want POS). But a bit confusing; isn't Magento a PHP

ERP in DJango; what's available? — I'm thinking of writing a DJango wrapper to OpenERP

2011-12-14 Thread Alec Taylor
What's available in terms of ERP on DJango? If there isn't anything that is maintained and has a strong feature-set, I'm thinking of writing a DJango wrapper to OpenERP (and would be happy to release this under FreeBSD license). -- You received this message because you are subscribed to the

Re: Is DJango bad for conveying business-logic?

2011-12-14 Thread Alec Taylor
Thanks all. DJango-erp looks interesting in and of itself. Is there an ERP solution open-sourced with DJango that is maintained? On Thu, Dec 15, 2011 at 1:08 AM, bobhaugen wrote: > I'm developing quite complex business systems in Django, and if you > google for "django

Is DJango bad for conveying business-logic?

2011-12-13 Thread Alec Taylor
which I am putting DJango (with satchmo) up against: - Ruby on Rails (with spree) [Ruby] - Catalyst [Perl] - JadaSite [Java] - KonaKart [Java] - Shopizer [Java] Could you please alleviate (or confirm) my concerns regarding the aforementioned quote about DJango? Thanks for all information, Al

Building my own `like` system

2011-12-09 Thread Alec Taylor
I be looking at Pinax? Thanks for all suggestions, Alec Taylor -- 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 this group, send email to dj

MS Access integration with DJango through conversion to (Postgres or MySQL) xor direct interaction

2011-11-29 Thread Alec Taylor
? Thanks for all suggestions, Alec Taylor -- 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 this group, send email to django-users+unsubscr...@google

Build mobile apps for DJango sites — Would XML/JSON passing be the best approach?

2011-11-21 Thread Alec Taylor
Qt and display it in a neat way in the mobile app. I'm not sure if this is the best approach, so am open to recommendations. Thanks for all suggestions, Alec Taylor -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Maturity of e-commerce modules in DJango when compared with Catalyst

2011-11-13 Thread Alec Taylor
"pay online" - Multiple stores linked to the 1 shopping-cart (even across multiple payment gateways) - Pre-built modules to assist in building mobile apps Which framework should I go with, and which modules would you recommend I install? Thanks for all suggestions, Alec Taylor -

DJango for large-scale e-commerce: A good or bad choice?

2011-10-23 Thread Alec Taylor
? Also, is DJango scalable enough for a system of this sort, or should I pick a competitor? Thanks for all suggestions, Alec Taylor -- 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

FOSS VOIP Framework compatible with DJango?

2011-09-28 Thread Alec Taylor
-interface (Java or Flash). Thanks for all suggestions, Alec Taylor -- 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 this group, send email to django-user

Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-26 Thread Alec Taylor
Thanks. I'll get the prereqs installed now. On Tue, Sep 27, 2011 at 10:43 AM, Brian Rosner <bros...@gmail.com> wrote: > On Sat, Sep 17, 2011 at 1:17 AM, Alec Taylor <alec.tayl...@gmail.com> wrote: >> Would you recommend I follow the aforementioned Learning Plan, or &

DJango doesn't work with Oracle 11g on Windows 8

2011-09-24 Thread Alec Taylor
ase? Thanks for all suggestions, Alec Taylor -- 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 this group, send email to django-users+unsubscr...@goog

Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-19 Thread Alec Taylor
Thanks all, lets see how much progress I can make in the next few days, maybe finally commit some code to my github! :P On Mon, Sep 19, 2011 at 6:52 PM, Rajul Srivastava wrote: > Dear Alec, > > I would suggest that you learn Django first before you move on to Pinax,as >

Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-19 Thread Alec Taylor
Adnan: Those tutorials seems 2-3 years old, has DJango changed significantly in those years? Deng: Thanks, I will do so :] -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-17 Thread Alec Taylor
Also, quick tutorial question; are there a good set of video tutorials (i.e. on YouTube or metacafe) for DJango? /me finds the most resources he has at his disposal the quicker he learns On Sep 18, 3:43 pm, Alec Taylor <alec.tayl...@gmail.com> wrote: > Thanks Russ, I'll use th

Re: Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-17 Thread Alec Taylor
Thanks Russ, I'll use that method. :] 2011/9/18 Aesha Umelmumenen <aesha9ye...@gmail.com>: > > > On Sun, Sep 18, 2011 at 2:24 AM, Russell Keith-Magee > <russ...@keith-magee.com> wrote: >> >> On Sat, Sep 17, 2011 at 3:17 PM, Alec Taylor <alec.tayl...@g

Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2011-09-17 Thread Alec Taylor
//intro/tutorial03/ 2. http://pinaxproject.com/docs/dev/contributing/#getting-started My current Python skills are limited to PythonCGI only. Would you recommend I follow the aforementioned Learning Plan, or would you recommend a different method? Thanks for all suggestions, Alec Taylor -- You

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-07 Thread Alec Taylor
Looks like the initial mockup for the final display didn't Ctrl+V properly, here it is: http://i55.tinypic.com/s5fivd.png The problem I'm trying to solve is one of deployment (and minimalist

Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-07 Thread Alec Taylor
://i55.tinypic.com/e8lgtg.png • http://i55.tinypic.com/o0qiow.png • http://i55.tinypic.com/o0qiow.png What are your thoughts on the DJango deployment redesign? Would anyone be interested in getting involved (making this happen!)? Best regards, Alec Taylor -- You received this message because

Group by date: Annotate & Aggregate Query

2011-03-24 Thread James Taylor
Hi, We're trying to do some reports of various things, and one of the common issues we have is to do statistics on a per day or per-month basis - A google search for various terms finds quite a few stackoverflow people trying to do the same thing and not a lot of people are getting any

Question about custom form widgets and validation

2010-12-29 Thread Brandon Taylor
Hi everyone, I'm working on a custom form widget to input length values in feet, inches and a fraction of an inch. So far, everything is working as expected, except for validation. It takes a value input as: 1' 10 1/2" and converts it into inches: 22.5, for storage in a database. My widget

Re: An app to create sprite bundles (django-imaginator)

2010-10-07 Thread Brandon Taylor
Hello, >From my experience with sprites, you wouldn't be using an image tag to render the sprite. Rather, you would be giving an id or class attribute on a div or some other type of HTML container tag that positions the background image (sprite) and possibly sets a width and height on the

Re: Confused about testing a page protected with @login_required

2010-10-06 Thread Brandon Taylor
fails :( Hope this helps someone, Brandon On Oct 5, 11:37 pm, Brandon Taylor <btaylordes...@gmail.com> wrote: > Hi everyone, > > I set up a bare-bones project with one view decorated with > @login_required. > I created an initial_data.json fixture with a user. > I called se

Re: PyDev create new project wizard creates two folders in Aptana Studio 3?

2010-10-05 Thread Brandon Taylor
...@gmail.com> > > > > > Check if you are in the python perspective > > > On 1 oct, 19:34, Brandon Taylor <btaylordes...@gmail.com> wrote: > > > Hi everyone, > > > > I'm used to organizing my Django projects in one folder for the > > &g

Confused about testing a page protected with @login_required

2010-10-05 Thread Brandon Taylor
Hi everyone, I set up a bare-bones project with one view decorated with @login_required. I created an initial_data.json fixture with a user. I called self.client.login(username='foobar', passowrd='foobar') and it returned True. I assigned a response variable from self.client.get('/protected/')

Re: Error

2010-10-01 Thread Brandon Taylor
Sounds like you have an infinite loop. On Oct 1, 12:12 pm, Tsolmon Narantsogt wrote: > Hi there > > i got this error > > *Exception RuntimeError: 'maximum recursion depth exceeded while calling a > Python object' in > help me > > Thank you > Tsolmon -- You received this

PyDev create new project wizard creates two folders in Aptana Studio 3?

2010-10-01 Thread Brandon Taylor
Hi everyone, I'm used to organizing my Django projects in one folder for the project and then sub folders for app modules... /my_project -__init__.py -settings.py /some_app and so on. However, when I create a new Django project using the PyDev wizard, I get: /my_project

Re: IDE for Python/django

2010-09-27 Thread Brandon Taylor
Aptana Studio 2 & 3 Beta + PyDev on Linux makes a great dev environment for Django. You can create runtimes for debugging, add modules to the Python path for your project, like the site-packages folder from a virtualenv. You'll get code assist for Python, HTML, CSS and JavaScript. A number of

Re: Problem testing a view decorated with @login_required

2010-09-26 Thread Brandon Taylor
Sorry, the second test is the one that fails. On Sep 26, 2:01 pm, Brandon Taylor <btaylordes...@gmail.com> wrote: > Hi Everyone, > > I'm having an issue testing a page protected with @login_required. I'm > loading a user via a fixture. I can call > self.client.login(**cred

Problem testing a view decorated with @login_required

2010-09-26 Thread Brandon Taylor
Hi Everyone, I'm having an issue testing a page protected with @login_required. I'm loading a user via a fixture. I can call self.client.login(**credentials) successfully and get True back. I can retrieve a User object using the _auth_user_id key held in session from the call to

Re: Problem with reversing url in test

2010-09-25 Thread Brandon Taylor
This problem turned out to be related to specificity. Another url pattern was overriding the pattern that I was testing. On Sep 24, 9:43 pm, Brandon Taylor <btaylordes...@gmail.com> wrote: > So it appears to be something with django-cms' urls that are causing > issues with testi

Re: Problem with reversing url in test

2010-09-24 Thread Brandon Taylor
, Brandon Taylor <btaylordes...@gmail.com> wrote: > So here's something else that's weird... > > I can start a shell, load up the test Client and get the page in > question: > > Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) > [GCC 4.4.3] on linux2 > Type "help&q

Re: Problem with reversing url in test

2010-09-24 Thread Brandon Taylor
formation. (InteractiveConsole) >>> from django.test.client import Client >>> c = Client() >>> response = c.get('/categories/') >>> response.status_code 200 Anyone have any ideas what could be wrong with the unit test? On Sep 23, 10:51 pm, Brandon Taylor <btaylor

Problem with reversing url in test

2010-09-23 Thread Brandon Taylor
Hi everyone, I'm having a problem with reversing a URL in a unit test: class ProductTestCase(TestCase): def setUp(self): self.client = Client def test_project_permalink(self): project = Project.approved.all()[0] url = project.get_absolute_url() I'm using an

Re: Tools to ease template/ui development

2010-09-14 Thread Brandon Taylor
I use Aptana with PyDev and get code completion for Python, HTML, CSS, JavaScript (and jQuery) and more. It's cross-platform, free and the Beta 3 version has even more Django support thanks to the latest version of PyDev. There are plugins for Git, Mercurial, SVN and more. Brandon On Sep 14,

Need to access fieldsets for custom model admin from ModelForm

2010-09-14 Thread Brandon Taylor
Hi everyone, I need to add a checkbox field to an ModelForm, which is easy enough by overriding __init__ on the ModelForm, but I'm also using a custom fieldset on the ModelAdmin. So, I need to be able to add the field to the fieldset from the form's __init__ Possible? I'm not sure how I can get

Re: Overriding queryset for admin.ModelAdmin

2010-09-14 Thread Brandon Taylor
The solution is to add the foreign key field as a list_filter, then Django will accept the querystring parameter. Hope that helps someone! On Sep 13, 7:29 pm, Brandon Taylor <btaylordes...@gmail.com> wrote: > Hi everyone, > > I have a very strange problem I'm trying to get a ha

Overriding queryset for admin.ModelAdmin

2010-09-13 Thread Brandon Taylor
Hi everyone, I have a very strange problem I'm trying to get a handle on. I need to filter a model admin with a value from the querystring, so I am doing an override of queryset in my ModelAdmin like so: def queryset(self, request): id = request.GET.get('id', None) if id: return

Misbehaving queryset override in admin

2010-06-05 Thread Brandon Taylor
Hello everyone, I have two models: PublicAccount and Order. I need to provide a link to filter Orders by PublicAccount. So, I added a field to the list display of my PublicAccount: def orders(self): return 'View' % \ (reverse('admin:orders_order_changelist'), self.pk)

Custom Model Fields

2010-05-09 Thread Nick Taylor
Hi all, I want to create my own "field" type for a model, this essentially will be a relationship to another model via a generic link model (using GenericForeignKey etc). As en example I basically want to do the following in models.py: class Pizza(models.Model): toppings = IngredientsField()

Additional Text Form Field within a Models Admin Screen

2010-05-08 Thread Nick Taylor
Hi all, I'm pretty new to Django so bare with me if this is a simple question. Basically, I have an Article model which is simply title, body, status etc. Now, I want to add an additional TextBox to the admin for the model, but I don't want to add it as part of the Article model, as I don't want

Re: "format" error with django-piston

2010-03-31 Thread Brandon Taylor
I ended up using jezdez's fork of Piston, and it works as expected: https://bitbucket.org/jezdez/django-piston/ On Mar 31, 9:57 am, Brandon Taylor <btaylordes...@gmail.com> wrote: > Hi everyone, > > I know there's a Google Group for django-piston, but there's not very >

Re: Admin Add Page

2010-03-31 Thread Brandon Taylor
You can extend the change_form.html and change_list.html templates for those views, or the base_site.html template. Look in your: django/contrib/admin/templates/admin/ folder to see all of the templates. Also, check out the documentation at:

Re: word processing django apps

2010-03-31 Thread Brandon Taylor
At The Texas Tribune (texastribune.org), we use a combination of TinyMCE and django-reversion. It doesn't track changes between versions, but it maintains a history table of each previous version of our main content types. Cheers, Brandon On Mar 30, 4:18 pm, John Griessen

Re: Getting strange email from "dreamhost"

2010-03-31 Thread Brandon Taylor
I'm getting those from this forum as well. On Mar 31, 10:13 am, Wiiboy wrote: > Hi guys, > I've gotten two emails from "Mail Delivery Subsystem > " with the subject "Your message was NOT > received by django-us...@googlegroups.com!". > The body is

Re: modelform validation

2010-03-31 Thread Brandon Taylor
Hi there, When calling def clean_name(self):, you can see if your instance has an id or not: def clean_name(self): if not self.id: #this would be a new record else: #this would be an existing record HTH, Brandon On Mar 31, 9:24 am, Emanuel

Re: Passing hidden foreign key to form as initial value

2010-03-31 Thread Brandon Taylor
Hi there, Instead of using the course object in your initial data, which will pass in the __unicode__ representation of the object, pass in the id: form = CouseBook(initial = {'course': course.id}) That should get you the numeric id, but you'll also need to override your save method to get the

"format" error with django-piston

2010-03-31 Thread Brandon Taylor
Hi everyone, I know there's a Google Group for django-piston, but there's not very much conversation on that group, so I'm re-posting here as well. I'm getting an error when running the "blogserver" example site included with Piston: AttributeError at /api/posts/ 'Blogpost' object has no

Re: limit_choices_to a value on a field in the same model

2010-03-14 Thread Brandon Taylor
Walt, you're a lifesaver! Many thanks for the great example. I only made a couple of minor tweeks: class AgencyForm(forms.ModelForm): class Meta: model = Agency def __init__(self, *args, **kwargs): super(AgencyForm, self).__init__(*args, **kwargs) if

limit_choices_to a value on a field in the same model

2010-03-13 Thread Brandon Taylor
Evening Everyone, I have a model "Agency" with "state" as a foreign key and "counties" as a many-to-many. County has a foreign key to "state" I would like to limit the County choices in Django admin to the state of the Agency being edited, but, I can't seem to find the right place to get an

Re: Permissions help

2010-03-12 Thread Brandon Taylor
12, 8:37 pm, Brandon Taylor <btaylordes...@gmail.com> wrote: > > > I need to add a custom permission to only allow deletes on an object > > if it has a certain property and the user is in a specific group, and > > I need it to work in Django admin. > > TIA,

Permissions help

2010-03-12 Thread Brandon Taylor
Hi Everyone, I need to add a custom permission to only allow deletes on an object if it has a certain property and the user is in a specific group, and I need it to work in Django admin. Possible? I was thinking I might just override the template and remove the delete link, but permissions seems

Re: Need help understanding a custom upload example

2010-02-16 Thread Brandon Taylor
> very large images (> 100 Meg). > > Yours > > Thanos. > > On Feb 16, 10:07 am, Brandon Taylor <btaylordes...@gmail.com> wrote: > > > > > Hi Everyone, > > > I'm confused about creating a custom upload handler and how it ties > > into my mode

Re: Need help understanding a custom upload example

2010-02-16 Thread Brandon Taylor
ies Manager > Nazareth College > > - "Brandon Taylor" <btaylordes...@gmail.com> wrote: > > > > > Hi Everyone, > > > I'm confused about creating a custom upload handler and how it ties > > into my model. From the docs, this is an example of a c

Need help understanding a custom upload example

2010-02-16 Thread Brandon Taylor
Hi Everyone, I'm confused about creating a custom upload handler and how it ties into my model. From the docs, this is an example of a custom upload handler, which I'm assuming goes in my view, or is accessed from my view: def handle_uploaded_file(f): destination = open('some/file/name.txt',

Problem with long running processes and db records

2010-02-09 Thread Brandon Taylor
Hi everyone, Our basic content model pseudo-code is: class Content(models.Model) class Image(Content) class Story(Content) lead_art = ForeignKey(Content) Content has an ID of course, and Image, Story, etc have a content_ptr_id What we're experiencing from time to time in Django admin is

Re: What hosting companies do you use for django hosting?

2010-02-09 Thread Brandon Taylor
WebFaction. They are simply awesome. On Feb 9, 9:52 am, adamjamesdrew wrote: > Thanks -- 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

Skype me if you want to help a newb.

2009-12-23 Thread Cory A. Taylor
I want to get the extreme dummies version of how to use Django. My Skype ID is "coryalantaylor" -- 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,

Re: Form validation: Add at least one item to inline model

2009-11-23 Thread Brandon Taylor
http://wadofstuff.blogspot.com/2009/08/requiring-at-least-one-inline-formset.html On Nov 23, 6:06 pm, Brandon Taylor <btaylordes...@gmail.com> wrote: > Hi everyone, > > I need to validate that at lease one item has been added to an inline > model in Django admin. I'm not quite

Form validation: Add at least one item to inline model

2009-11-23 Thread Brandon Taylor
Hi everyone, I need to validate that at lease one item has been added to an inline model in Django admin. I'm not quite sure where to put this validation...can someone help me out? TIA, Brandon -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Apache/mod_wsgi woes

2009-11-19 Thread Brandon Taylor
, everything's working again, finally. Ugh. Cheers, Brandon On Nov 19, 9:40 am, Brandon Taylor <btaylordes...@gmail.com> wrote: > Hi Andy, > > Thanks for the reply. The Ubuntu instance only has one Python > installed - 2.6.4. I thought it might be a problem related to that as >

Re: Apache/mod_wsgi woes

2009-11-19 Thread Brandon Taylor
can't explain why it won't work in a VM, but it will if I'm dual- booting, or just running Ubuntu native. b On Nov 19, 9:14 am, Andy McKay <a...@clearwind.ca> wrote: > On 09-11-19 6:40 AM, Brandon Taylor wrote: > > > ImproperlyConfigured: ImportError filebrowser: No module nam

Apache/mod_wsgi woes

2009-11-19 Thread Brandon Taylor
Hi everyone, I'm developing on Ubuntu 9.1 in a VM Ware Fusion instance on OS X, 10.5.8. I have apache2-mpm-worker and mod_wsgi installed through aptitude. I have Django 1.1.1 installed in /usr/local/lib/python2.6/dist- packages. My django project is in: /home/btaylor/django_projects/cit My

Re: Scanning uploads for viruses

2009-11-13 Thread Brandon Taylor
the resume, which I'm going to grab and stick into the DB anyway, but for some reason, they insist on letting people upload. Kindest regards, Brandon On Nov 13, 6:08 am, David De La Harpe Golden <david.delaharpe.gol...@ichec.ie> wrote: > Brandon Taylor wrote: > > Greetings all, &

Scanning uploads for viruses

2009-11-13 Thread Brandon Taylor
Greetings all, My project involves uploading Word documents (resumes), and I would like to be able to scan them for viruses. I've found ClamAV, but installation is proving a little testy. So, I thought I'd ping the community for advice. Should I even be concerned with this? My deployment server

Re: en vs. en_US (was 'Problems creating a new locale')

2009-09-27 Thread Lewis Taylor
Hi michael, the language code should always be in the form xx or xx-xx and the locale folders should be in the form xx or xx_XX. If you look through the translation code you can see that what django does is given a language xx-xx, it will check for xx_XX locale then xx. given xx (en for

URL resolving of patterns including 0 or 1 operator fails.......

2009-09-25 Thread Lewis Taylor
Here it goes: I wanted a clean url structure so i tried to abstract as much as i could in one url pattern. it looks something like this: url(r'^approved/((?P[a-zA-Z ,-]+)?)(/?)((?P[0-9]+)?) (/?) $', get_approved_images, name='approved_images') this in theory should allow the return of 1) all

<    1   2   3   4   5   >