How can I run multiple django sites with celery?

2012-01-18 Thread mongoose
Hi there, I have one website using celery just fine but now when I try with a second website it's tasks don't seem to do anything. In my celeryd conf under /etc/default I've set some lines like this: # Name of nodes to start, here we have a single node CELERYD_NODES="w1" # or we could have three

django-grappelli can't embed video?

2011-11-09 Thread mongoose
I installed django-filebrowser==3.3.0 and django-grappelli==2.3.4 onto a simple demo project on django==1.3.1 that only has Flatpages. I've uploaded a a sample .avi into the filebrowser. Added TinyMCE to my flatpages. I click "Insert/edit embedded media", browse to my video and click "Select". The

using postgresql 9 replication but want to balance to servers online only

2011-08-25 Thread mongoose
Hi, I've got a master and slave database setup working using Postgresql 9 Replication. I followed this guide quite strongly http://brandonkonkle.com/blog/2010/oct/20/postgres-9-streaming-replication-and-django-balanc/ When the master is updated then the slave replicates the changes. The requests

Implementing one app for multiple users with their own data.

2011-07-29 Thread mongoose
Hi, I've a web app which works nicely on a per user or per company basis. However I've gotten to the point where I want to run multiple companies through the same app(not have to redeploy for each client). However each client needs their own data and shouldn't be able to see other clients data. A

import with django-batchimport and only insert if record doesn't exist else update based on foreignkey reference.

2011-06-14 Thread mongoose
I'm trying to run an import and in my identity fields I'm referencing a foreignkey field. The excel file holds the name of the brand and this field seems to be ignored when the import happens. My theory was that perhaps it's because it's not mapped and in fact it's probably matching the brand_name

How to use django-batchimport

2011-06-08 Thread mongoose
Hi there, I am trying to use django-batchimport that I got from http://code.google.com/p/django-batchimport/ It's function is to allow for importing/exporting of data from excel into and out of django models. There is no documentation on the new version(which is still not so new). I am hoping othe

Looking for some help/guidance on how to create a facebook application based on django

2011-04-19 Thread mongoose
Hi all, I've created the example django poll application on http://docs.djangoproject.com/en/dev/intro/tutorial01/ Everything works great. I now want to have this poll application be a facebook application. I thought by creating a FB application and just pointing to my hosted Poll application URL

Re: What do you use to build facebook applications with django?

2011-04-11 Thread mongoose
ks well. > > Lorenzo > > Il 16/03/11 15:46, mongoose ha scritto: > > > > > > > > > Hi, > > > I've been struggling so much trying to get a Facebook app to work on > > the Django framework. Mostly battling with pyFacebook. For some > > parti

how to have a comment hidden while moderated?

2011-04-05 Thread mongoose
hi How do I setup the django comments so that when a comment is posted it will not appear and be pending moderation( email sent to admin to approve or reject comment )? As default it just posts and shows straight away. Do I need to use "class CommentModerator moderate_after" ? thanks. -- You r

What do you use to build facebook applications with django?

2011-03-16 Thread mongoose
Hi, I've been struggling so much trying to get a Facebook app to work on the Django framework. Mostly battling with pyFacebook. For some particular reason the login just doesn't work for me. I've posted some help questions and still come up with nothing. Perhaps the pyFacebook is outdated? But my

pyfacebook @facebook.require_login() not working

2011-03-15 Thread mongoose
Hi there, First time using pyFacebook. I've literally copied the example application [https://github.com/sciyoshi/pyfacebook/tree/master/ examples/fbsample] and put it up onto my server. I've created an FB app and now when I try to load the app basically what happens is that the browser keeps refr

Re: Pinax static files in windows7 virtualenv

2011-03-02 Thread mongoose
are you getting an errors, maybe 404 erros when the request is being made for the media files? On Feb 25, 1:07 pm, Kopch wrote: > Hi all! I'm noob in django. I've installed Pinax project in windows > virtualenv, after i've made static files collect with build_media. > Everything were collected in

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread mongoose
that > sounds like an obvious project.  It would still be outside your > editor, however.  I really want formatting aid inside my editor > (spoiled emacs user).  Perhaps an extension to IDLE? > > On Tue, Feb 22, 2011 at 9:55 AM, mongoose wrote: > > hi all, > > > I&

Re: How to format django template code nicely with notepad++?

2011-02-22 Thread mongoose
;re editing templates, you probably have python installed. > If there isn't already a python based template reformatter, that > sounds like an obvious project.  It would still be outside your > editor, however.  I really want formatting aid inside my editor > (spoiled emacs user).  P

How to format django template code nicely with notepad++?

2011-02-22 Thread mongoose
hi all, I'm using notepad++ a lot and really missing a code formatter (vim would be = to format). Anyone know of anyway to format my html nicely? I've tried HTML Tidy but it keeps adding a 20% where I have a space for example "{{%20MEDIA_URL%20}}css/styles.css". -- You received this message beca

Virtualenv django project created through ubuntu, checkout out to a windows machine not cross os compatible?

2011-02-17 Thread mongoose
Hi, I've created a django project with virtualenv on my server. It is an Ubuntu server. I have checked it into svn. Now I'm on a windows machine and have checked out the project. I noticed however that the activate and deactivate scripts are in bash when created through linux and are .bat files in

Re: What is a good app to use for a portfolio or images and videos?

2011-01-28 Thread mongoose
s then the hard times will come. On Jan 27, 4:17 pm, Stuart wrote: > Have a look at django-filer by Stefan Foulis. There's also a plug-in > for use with django-cms, if you wish. > > https://github.com/stefanfoulis/django-filer > > --Stuart > > On Jan 27, 7:30 am, mongoose

What is a good app to use for a portfolio or images and videos?

2011-01-27 Thread mongoose
Hi hi, Wanting to make a simple site that hosts images and videos. Like a portfolio page. Are there any good apps specifically for uploading a video and displaying it in a nice player? Or is the better option to just upload it with something like filebrowser and embed the link into flatpages? An

Changed app_label in class meta and now user can't see application in admin backend

2011-01-24 Thread mongoose
Hi there, I'm using the Coltrane Blog. I changed Class Meta: app_label = 'Blog' Now Entries in under Blog instead of Coltrane. Great this is what I want. However now I have created a user with privileges to add, edit and delete entries for Coltrane app. I assigned the privileges under U

Re: Change CSS file in base template depending on browser

2011-01-18 Thread mongoose
Thanks guys. Just saw this in the admin contrib pages too:D win! On Jan 18, 7:36 pm, Dave Sayer wrote: > +1 for conditional comments. They're what all the cool kids are using these > days. > On 18 Jan 2011 15:00, "Michel Thadeu Sabchuk" wrote: > > > Hi, > > >> I have 2 css files. One specificall

Change CSS file in base template depending on browser

2011-01-18 Thread mongoose
Hi there, I have 2 css files. One specifically for IE because it's so horrible. I'd like to load either or css files depending on the browser. I know I have to use agent = request.META['HTTP_USER_AGENT'] I looked at this http://djangosnippets.org/snippets/77/ but it seems complex. All I

Re: Too many items in my drowndown list

2011-01-14 Thread mongoose
ote: > Yes, it's possible, define them in in your inline class. > > Excerpts from mongoose's message of Fri Jan 14 08:53:18 -0200 2011: > > > Ok so I've tried it but can't get it to work properly. I am using > > inlines. Is it possible to use raw_id_fields

Re: Too many items in my drowndown list

2011-01-14 Thread mongoose
Ok so I've tried it but can't get it to work properly. I am using inlines. Is it possible to use raw_id_fields with inlines? On Jan 4, 9:25 am, mongoose wrote: > Thanks so much I'm going to give this a try! > > On Jan 3, 1:54 pm, Greg Turner wrote: > > >

Re: Too many items in my drowndown list

2011-01-03 Thread mongoose
just like the normal django admin, but when you click > on an item, it becomes the selected item in your inline, and the window > closes. > > On 3 January 2011 18:55, mongoose wrote: > > > > > Hi there, > > > I have a drowdown list in my inlines. The problem

Too many items in my drowndown list

2011-01-02 Thread mongoose
Hi there, I have a drowdown list in my inlines. The problem is that there are over 3500 items which is making is difficult for people to use. Are there eaiser ways perhaps to filter or search within the dropdownlist? Thanks -- You received this message because you are subscribed to the Google

Re: running projects on the back of a base URL and having issues with the homepage

2010-12-21 Thread mongoose
ls' > > >>> TEMPLATE_DIRS = ( > >>>     os.path.join( SITEDIR, 'foo', 'templates' ), > >>> ) > > >>> INSTALLED_APPS = ( > >>>     'django.contrib.auth', > >>>     'django.contrib.conten

Re: running projects on the back of a base URL and having issues with the homepage

2010-12-14 Thread mongoose
:'( On Dec 11, 9:22 pm, mongoose wrote: > Hi there, > > I've got a base url.http://baseurl.com/ > I'm trying to run projects on the back of it. For > examplehttp://baseurl.com/mongoose/ > The projects run but the URL don't work properly because they all &

Re: How to move inline into or above fieldsets in django admin?

2010-12-11 Thread mongoose
rol exactly how things are displayed. > On Dec 11, 2010 1:30 PM, "mongoose" wrote: > > > Hi wayne, > > > to be honest I've no idea how i'd do that by overriding a template. > > > On Dec 11, 7:20 pm, wayne wrote: > >> On Dec 11, 8:05 am, mon

Re: How to move inline into or above fieldsets in django admin?

2010-12-11 Thread mongoose
Hi wayne, to be honest I've no idea how i'd do that by overriding a template. On Dec 11, 7:20 pm, wayne wrote: > On Dec 11, 8:05 am, mongoose wrote: > > > > > Hi there, > > > Currently I've got a recipe application like this: > > > class R

running projects on the back of a base URL and having issues with the homepage

2010-12-11 Thread mongoose
Hi there, I've got a base url. http://baseurl.com/ I'm trying to run projects on the back of it. For example http://baseurl.com/mongoose/ The projects run but the URL don't work properly because they all reference the base url. So for 'About Me' page it points to http://

How to move inline into or above fieldsets in django admin?

2010-12-11 Thread mongoose
Hi there, Currently I've got a recipe application like this: class RecipeAdmin(admin.ModelAdmin): fieldsets = ( ('Recipe Details',{ 'fields': ( ('title', 'slug'),'description', 'difficulty', 'vegetarian', 'serves', (

Re: How to use django-command-extentions dumpscript?

2010-12-09 Thread mongoose
> > http://code.google.com/p/django-command-extensions/wiki/InstallationI... > > Fei > > On Dec 8, 6:30 am, mongoose wrote: > > > Hi all, > > > I'm trying out django-command-extensions I want to use the dumpscript > > command but I don't understand

Re: How to use django-command-extentions dumpscript?

2010-12-09 Thread mongoose
s into python? > > Here are the detailed instructions > > http://code.google.com/p/django-command-extensions/wiki/InstallationI... > > Fei > > On Dec 8, 6:30 am, mongoose wrote: > > > Hi all, > > > I'm trying out django-command-extensions I want to use t

Re: returning type and value

2010-12-08 Thread mongoose
Thanks Tom, worked like a charm. So actually qs is a collection of results and I can iterate through them. Good to know. Cheers. On Dec 7, 7:52 pm, Tom Evans wrote: > On Tue, Dec 7, 2010 at 5:29 PM, mongoose wrote: > > Hi all, > > > I have this in my model.py > >    

How to use django-command-extentions dumpscript?

2010-12-07 Thread mongoose
Hi all, I'm trying out django-command-extensions I want to use the dumpscript command but I don't understand what I'm supposed to do to set it up. How to use django-command-extentions dumpscript? Thanks -- You received this message because you are subscribed to the Google Groups "Django users

returning type and value

2010-12-07 Thread mongoose
Hi all, I have this in my model.py def recipe_cost(self): total = IngredientInfo.objects.filter(recipe = self.id).aggregate(Sum('total')).values() return total Then in my admin.py I call that to display the cost. class RecipeAdmin(admin.ModelAdmin

Re: sum() of Model field or DB field

2010-12-07 Thread mongoose
for raw sql queries: http://docs.djangoproject.com/en/dev/topics/db/sql/ On Dec 7, 7:14 pm, Jagdeep Singh Malhi wrote: > hi > > I want to use mysql Query : >    Select sum(field_name) FROM table_name  WHERE some condition. > > Is it possible without using raw queries in Django ? > if yes, please

Re: DJANGO administration

2010-12-06 Thread mongoose
try this out http://docs.djangoproject.com/en/dev/intro/tutorial02/#customize-the-admin-look-and-feel On Dec 6, 12:21 pm, x_marine wrote: > Hi all, > > I have been using Django for a client. The client want the word " > Django Administration "  to be change to " Amazonia Administration" > > Wher

Re: How can I set a flatpage to be my homepage?

2010-11-24 Thread mongoose
ib/flatpages/#installation > > On Nov 24, 2010, at 8:23 AM, mongoose wrote: > > > > > OK further updates. > > > I updated my URLs to have the following. > > urlpatterns += patterns('', > >    (r'', 'django.views.generic.simple.direct_

Re: How can I set a flatpage to be my homepage?

2010-11-24 Thread mongoose
d effect on the homepage. But still the pages that load are blank. I've got {{ flatpage.title }} {{ flatpage.content }} In my page but still just white. Any suggestions? On Nov 24, 3:16 pm, mongoose wrote: > I tried this approach > > urlpatterns += patterns('', >  

Re: How can I set a flatpage to be my homepage?

2010-11-24 Thread mongoose
ther bad news is that now all the other flatpages don't load when I put in their URL. There is something very simple I'm just not getting isn't there? On Nov 23, 4:35 pm, mongoose wrote: > Hi There, > > I've specified the URL as / in the admin. > Now I get an erro

Re: How can I set a flatpage to be my homepage?

2010-11-23 Thread mongoose
latpages.urls')), ) On Nov 21, 8:43 pm, "Joseph (Driftwood Cove Designs)" wrote: > mongoose - >   all you need to do is specify the url:  / >   for theflatpageyou want to be homepage. > >   aflatpagecan only have one URL - if you want it to show up on 2 > urls (e.g. / a

How can I set a flatpage to be my homepage?

2010-11-21 Thread mongoose
Hi there, I've created some flatpages and they work great. For example http://127.0.0.1:8000/home/ and http://127.0.0.1:8000/blog/ I'm catching my flatpages with urlpatterns += patterns('', (r'', include('darren_web.flatpages.urls')), ) What I want though is for http://127.0.0.1:8000/home/ t