Thanks George - I understand now. I never thought it would only apply to
the admin interface but should have. Kind regards,
Rob
On Sun, Apr 29, 2018, 10:05 PM George Lubaretsi,
wrote:
> Django permissions are only enforced in Admin interface by default. You
> have to enforce them in your vie
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
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
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 f
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 n
Oh that just makes my brain hurt lol
Works though! thanks
On Sep 7, 3:13 pm, Masklinn 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
> > help illustrate my pr
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 01/02
Solved over at
http://stackoverflow.com/questions/1378447/question-about-admin-py-listdisplay
On Sep 4, 11:28 am, "Rob B (uk)" wrote:
> http://dpaste.com/89435/
>
> I'm trying to show game.status in GameListAdmin's list_display but not
> sure how to do a backw
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 sub
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
:
> On Aug 10, 10:45 pm, "Rob B (uk)" 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 getting the error "type object
> > 'OnlineUse
iddleware (name OnlineUsers) - http://dpaste.com/77967/
What am I doing wrong now?
Thanks R
On Aug 10, 8:32 pm, Daniel Roseman wrote:
> On Aug 10, 7:10 pm, "Rob B (uk)" wrote:
>
> > Thanks Daniel.
> > Im still quite new to python / django and not sure how to pass
> >
.html',
{ 'profile_list': Profile.objects.all
() }, context_instance=RequestContext(request))
On 9 Aug, 22:16, Daniel Roseman wrote:
> On Aug 9, 10:07 pm, "Rob B (uk)" wrote:
>
> > Im using this middleware to try and display a list ofonlineuser on
> > my site
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 subs
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
--~--~
Well it works a treat so big thanks.
2009/8/2 Chris Withers
>
> Rob B wrote:
> > Great I didn't know about that one. I'm curious to what are the
> > benefits of doing it that are?
>
> Less code for you to write and maintain :-)
>
> Chris
>
&g
Great I didn't know about that one. I'm curious to what are the benefits of
doing it that are?
Thanks
2009/8/2 Chris Withers
>
> Rob B (uk) wrote:
> > Solved it by doing this:
> >
> > def profile_detail(request, name):
> > p = get_object_o
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)" wrote:
> Using the url to look up a user profile just n
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):
A few links that might help...
http://groups.google.com/group/django-users/browse_thread/thread/4ba5652bcbd1f958
http://www.djangosnippets.org/snippets/947/
2009/7/26 Jonas Obrist
>
> Is there a builtin way in django to get a list of other users who are
> currently visiting a website or even a
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 = patterns('django.vi
Huge thanks Tanja - worked a treat.
Any ideas why the book has it the other way around?
2009/7/18 klaut
>
>
>
> On Jul 18, 6:30 pm, "Rob B (uk)" wrote:
> > Bit stumped on chapter 4.
> >
> > Every thing is working except I'm getting a 'Page n
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 = date
23 matches
Mail list logo