form model def save question

2010-09-06 Thread Rob B (uk)
Been struggling over at http://stackoverflow.com/questions/3652585/simple-django-form-model-save-question to get a solution. I want the inuse field to update to to True when LocationForm is saved. For example there would be a list of locations added by the admin (London, New York and Paris) all

Best intranet solution for a small digital agency?

2010-06-07 Thread Rob B (uk)
I work for a small digital agency (10-15 employees). We design and build websites (using php and Django). Are we better off building our own intranet using django or going for a pre built (free or paid for) solution? Key features needed: - Project management (basecamp clone) - Time reporting

Django or CMS.

2010-02-05 Thread Rob B (uk)
The design agency I work for are looking into CMS options. Being a Django man myself I'm hoping to convince them to build one using Django. Requirements are roughly: Page control (creation/drafts/published/withdrawn/deletion) Page revisions View draft pages on site for testing In-place editing

models.Manager error

2009-09-21 Thread Rob B (uk)
Model: http://dpaste.com/96349/ View: def game_list(request): return render_to_response('games/game_list.html', { 'object_list': GameList.objects.published.all().order_by('position')}) Template error: AttributeError at /games/ 'Manager' object has

Re: date range headache

2009-09-07 Thread Rob B (uk)
Oh that just makes my brain hurt lol Works though! thanks On Sep 7, 3:13 pm, Masklinn <maskl...@masklinn.net> wrote: > On 7 Sep 2009, at 15:50 , Rob B (uk) wrote:http://dpaste.com/90621/ > > > (The code in above obviously isn't going to work I'm just using it to > > he

date range headache

2009-09-07 Thread Rob B (uk)
http://dpaste.com/90621/ (The code in above obviously isn't going to work I'm just using it to help illustrate my problem.) I want to show all active promotions between the start date and end date. So if a promotion starts on 01/01/09 and ends 30/01/09 and a person searches from 01/12/08 to

Re: question about admin.py list_display

2009-09-04 Thread Rob B (uk)
Solved over at http://stackoverflow.com/questions/1378447/question-about-admin-py-listdisplay On Sep 4, 11:28 am, "Rob B (uk)" <robtot...@googlemail.com> wrote: > http://dpaste.com/89435/ > > I'm trying to show game.status in GameListAdmin's list_display but not >

question about admin.py list_display

2009-09-04 Thread Rob B (uk)
http://dpaste.com/89435/ I'm trying to show game.status in GameListAdmin's list_display but not sure how to do a backwards lookup using the ForeignKey in Admin.py See link for details. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are

Need help getting the company I work for to go with django

2009-09-01 Thread Rob B (uk)
I work as a web developer at a reasonably large company in London. We are just about to completely re brand and rebuild the companies website (s) and implement a CMS. I'm having a meeting tomorrow to discuss different avenues we can go down in regards to what technologies we can use. I'm hoping

Re: user online

2009-08-10 Thread Rob B (uk)
dan...@roseman.org.uk> wrote: > On Aug 10, 10:45 pm, "Rob B (uk)" <robtot...@googlemail.com> wrote: > > > Im reading through loads of python / django tutorials atm, hopefully > > some of it will stick! > > > I added what you suggested and now I'm get

Re: user online

2009-08-10 Thread Rob B (uk)
rs) - http://dpaste.com/77967/ What am I doing wrong now? Thanks R On Aug 10, 8:32 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Aug 10, 7:10 pm, "Rob B (uk)" <robtot...@googlemail.com> wrote: > > > Thanks Daniel. > > Im still qui

Re: user online

2009-08-10 Thread Rob B (uk)
', { 'profile_list': Profile.objects.all () }, context_instance=RequestContext(request)) On 9 Aug, 22:16, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Aug 9, 10:07 pm, "Rob B (uk)" <robtot...@googlemail.com> wrote: > > > Im using this middleware to try and dis

django-cms-2.0 problem

2009-08-10 Thread Rob B (uk)
Trying to get a default install of : http://github.com/digi604/django-cms-2.0/ up and running on my dev but I'm getting this error when trying to log into admin http://dpaste.com/77696/ Any ideas? --~--~-~--~~~---~--~~ You received this message because you are

user online

2009-08-09 Thread Rob B (uk)
Im using this middleware to try and display a list of online user on my site. http://dpaste.com/77464/ Im just not sure how to pass it to my view and template. Any ideas? Middleware found @ http://groups.google.com/group/django-users/browse_thread/thread/6f5f759d3fd4318a/ Thanks

Re: URL & DB question

2009-08-01 Thread Rob B (uk)
Solved it by doing this: def profile_detail(request, name): p = get_object_or_404(Profile, name=name) return render_to_response('profile_detail.html', {'name': p}) On 1 Aug, 12:22, "Rob B (uk)" <robtot...@googlemail.com> wrote: > Using the url to look up a user pr

URL & DB question

2009-08-01 Thread Rob B (uk)
Using the url to look up a user profile just not sure what to put in the view. Any suggestions welcome. Model: class Profile(models.Model): title = models.ForeignKey(User, unique=True) name = models.CharField(max_length=50, null=False, blank=False) def __unicode__(self):

urls.py error: unbalanced parenthesis

2009-07-19 Thread Rob B (uk)
Getting a unblanced parenthesis error with this urls setup. Not sure why. urls.py: from django.conf.urls.defaults import * from coltrane.models import Entry entry_info_dict = { 'queryset': Entry.objects.all(), 'date_field': 'pub_date', } urlpatterns =

Stuck re:Practical Django Projects 2nd E...

2009-07-18 Thread Rob B (uk)
Bit stumped on chapter 4. Every thing is working except I'm getting a 'Page not found (404)' when I try to view any entries. View: def entry_detail(request, year, month, day, slug): import datetime, time date_stamp = time.strptime(year+month+day, "%Y%b%d") pub_date =