okay, here's the background: I've been maintaining some websites since
the mid 90s. Most of it badly. I've coded by hand, used dreamweaver,
blosxom, twiki, and a few other doodads along the way like wordpress
and joomla. I'm sick of all of them and want "a better way". I wouldn't
call myself a web
On Wed, 2006-07-12 at 03:18 +, Scott McCracken wrote:
> I also ran into this problem when trying to create new users in the
> Django admin interface. According to the Django documentation "We've
> added extra security to the stored passwords in Django's authentication
> system. Thanks to a pat
I also ran into this problem when trying to create new users in the
Django admin interface. According to the Django documentation "We've
added extra security to the stored passwords in Django's authentication
system. Thanks to a patch from GomoX, passwords are now stored with a
salt and use SHA-1
On 11-Jul-06, at 9:46 PM, Remi wrote:
> PS: Since I'm posting here I'll also answer two questions that we
> get a
> lot: yes you can use the latest subversion Django code on our accounts
> (this is what is done in the screencast) and yes you get your own
> Apache2+mod_python instance which you
I don't know how to replicate it right now (I tried logging out and
deleting cookies, no dice) but it did happen to me once or twice while
I was developing something. If you only find this problem when you
aren't logged in then treating 'not user' as equivalent to
'user.is_anonymous' should be ok
On Tue, 2006-07-11 at 15:38 +, plungerman wrote:
> greetings,
>
> i have been working on a template loader to retrieve templates from the
> database. after integrating the loader to work with the django's
> admin, i now serve up templates from both the file system and the
> database, for bot
Setting permissions on a per-entry basis isn't supported yet but people
(mostly Chris Long) are working on it:
http://code.djangoproject.com/ticket/2270
http://code.djangoproject.com/wiki/RowLevelPermissions
-- Joshua
--~--~-~--~~~---~--~~
You received this messa
I found this problem once myself:
1. Add a news_pic, upload the image.
2. Go to edit the parent news item, make some changes, save it.
3. Discover the image has been deleted.
I dealt with it by moving core=True to another field, like 'title' or
'tags'.
Notice that in step 2 the news_pic is displa
Thanks for your replies. slug = slug worked. I was just tired and
must have made a mistake in there somewhere.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send emai
Can anyone tell me if it's possible to limit which entries within a
given table can be edited in the admin?
I've made a client user account that can only edit certain models, but I
would also like to make sure within those model/tables there are some
entries that they can't change. ( ie no deleti
Bob wrote:
> What would it be if I want to get my item from the database by the slug?
this depends on the moel's ttribute name (the one that's a slug).
If you can post you model's code, I can assiste further...
cheers
--~--~-~--~~~---~--~~
You received this me
One more thing, if you don't mind. The documentation, and your
context_processors.py show in the myapp directory. Can that file be in
"mysite", rather than "myapp" so I don't have to repeat it for
application I make?
--~--~-~--~~~---~--~~
You received this message
I don't indent .not_anonymous to solve this problem. But it wouldn't
mask it any more than .is_anonymous either.
The reason I suggest this way, is that I'd rather have a template
default to the "not logged in" section rather than just assume a logged
in user when actually the user may just not be
Wow, thanks for the help! I do understand the principle of views and
templates now, but I still need some help.
I have managed to get out the slug name of my projects in
"mydomain/portfolio/". But I don't know how I write the view for the
detail page or how I get the right URL to the detail.
I w
I don't understand the arguments for get_object_or_404.
(just found out what "pk" means)
What would it be if I want to get my item from the database by the slug?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
Hi, my native language is spanish. I'm learning both Django and Python
and I'd like to help translating Django docs to spanish. Please contact
me if there is some work in progress.
Facundo
Douglas Campos wrote:
> I think that a "official translation team" would be awesome. If we can
> concentrate
Hi,
I do actually have a very similar problem, and I've also checked the
more common errors (settings file,...).
I put in my templates:
{% if user.is_anonymous %}
Welcome, new user. Please log in.
{% else %}
Welcome, {{ user.username }}. Thanks for logging in.
{% endif %
But then, I onl
Hi Bob.
If you're getting 404's, then it's not in import problem on your view.
>From your code this line grabbed my attention:
p = get_object_or_404(Myclass, pk=slug)
if your are searching against the pk, this will only get any results if
the slug is the pk for your model (that will only happe
Thanks ! ..that is what I need :)
I'm always wonder how You find time for activity on this list ...36h
day timezone ? :P
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On 7/11/06, Spock <[EMAIL PROTECTED]> wrote:
> def url_to_contract(self):
> return '%s" % (self.id,self.owner)
>
>class Admin:
> list_filter = ( 'owner', 'url_to_contract')
>
> And when page is rendered I'dont get html link only string " href..and so on"
> Is there way to
Hi,
I'm loosing my pic when I edit the model on the admin in TABULAR mode.
I have the following model:
class news(models.Model):
name = models.CharField(maxlength=60)
pub_date = models.DateField(default=datetime.now)
content = models.TextField()
class Admin:
Hello,
I'm trying to build application based ond admin interface but here is
problem :)
If i create function that return html it is escaped when used in
list_filter
Example
class Deal(Model):
owner = CharField(maxlength=64)
bla bla ...
def url_to_contract(self):
return '%s
I'm not sure what I am doing wrong. I've tried a few things but it
isn't working and I get a 404 error for everything:
def detail(request, slug):
p = get_object_or_404(Myclass, pk=slug)
return render_to_response('myapp/detail.html', {'what goes here?':
p })
# it did work with: return Ht
Thanks, that's exaclty what i needed!
--~--~-~--~~~---~--~~
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 ema
On 7/11/06, spako <[EMAIL PROTECTED]> wrote:
> this is the only way i could get context processors specified in the
> setting TEMPLATE_CONTEXT_PROCESSORS to be run in a view. i basically
> want to know if what i do is the "correct" way of doing things and also
> if there are other way of getting c
i'm going to be using custom context processors a lot so i've written
my own shortcut to invoke RequestContext and get a template rendered.
this is my function:
def render_to_response_with_context_processors(template_name, request,
args={}):
"""
this function was written to provide a "sho
I don't get the USER from context in generic views. I have configured
the context procesors with django.core.context_processors.request, but
not work in generic views...Why?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
IBM has published the 2nd part in my two-part series on Web
Development frameworks.
http://www-128.ibm.com/developerworks/linux/library/l-turbogears/
Also, at the end of this article I include my comparison of the 2
frameworks. I tried to be as objective as possible.
Hopefully both projects wil
Hi ;).
Let's start with some presentation, please jump ahead for the
interesting stuff.
We (I mean my company) have evaluating some options to make a kind of
"business intelligence" web application. Basically a simple web page
where users make some selections, the app query a database and ret
I'm pretty new at this Django stuff and I really like using the free
Admin except for creating new users because it's difficult to create
passwords. Is there anyone out there interested in building a "Django
Password Generator" -- a utility to create the string for inserting new
users?
It would b
On 07/11/06 04:22, keukaman wrote:
> Thanks for the help. Will this work if my site is primarly flat pages?
>
This will work with any django template.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
On 07/11/06 10:59, [EMAIL PROTECTED] wrote:
> Hello all!
>
> Is it somehow possible to include an exisiting php-script which prints
> a table and some textual data (after some large calculations) in a
> django template?
> I rather don't want to port the existing php-script as it makes it job
> we
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
James Bennett wrote:
> On 7/11/06, Lucas Vogelsang <[EMAIL PROTECTED]> wrote:
>> I am looking for an implementation for a ManyToMany relation. I
>> quite like the way one can create the relations in the admin
>> interface. However I can't find a templ
Hi all,
There is now a screencast showing a step by step installation
of a real-life Django application on a WebFaction account.
The 19 minute screencast shows how to:
- Install a default Django application using our control panel
- Make it available over HTTPS as well (useful for the admin
greetings,
i have been working on a template loader to retrieve templates from the
database. after integrating the loader to work with the django's
admin, i now serve up templates from both the file system and the
database, for both the public and admin sites. one problem, however,
is with temp
a new version of the filebrowser is available for download.
CHANGES:
001: You may define an initial directory for each FileBrowseField by
adding a path to the help_text: Like "FileBrowser: /images/blog/" or
"FileBrowser: /documents/pdf/".
002: Sorting algorithm also works with Python 2.3 now
On 7/11/06, Lucas Vogelsang <[EMAIL PROTECTED]> wrote:
> I am looking for an implementation for a ManyToMany relation. I quite
> like the way one can create the relations in the admin interface.
> However I can't find a template nor a view for this in my django
> source tree. Anybody can help me w
Hello there,
Is there a way to constrain a DateField with a choices tuple? I want
the admin to restrict dates to valid months and years only.
Maybe I should make this happen with two different IntegerFields?
Best regards,
--
Carlos Yoder
http://carlitosyoder.blogspot.com
--~--~-~--~
Malcom:
Many thanks for your time and interest in answering and clarifying my
doubts. According to this, it is now a little detail comparing with the
general and nice architecture of Django.
Very best regards.
Vizcayno.
--~--~-~--~~~---~--~~
You received this mess
I think, the only way to do that is to call the php script in shell
from the Django view, retrieve the results into a string, and to pass
it to the template.
To execute a command in the shell from withing Python, you should
write something like this:
import os
put, get = os.popen4("ls") # replac
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I am playing around with python and django for about a week. and it
has been great fun.
I am looking for an implementation for a ManyToMany relation. I quite
like the way one can create the relations in the admin interface.
However I can't find
Gábor,
I'm reading Jeff's tutorial, and I believe I'm seeing the light at the
end of the tunnel.
Will update later, thank you!
On 7/11/06, Gábor Farkas <[EMAIL PROTECTED]> wrote:
>
> Carlos Yoder wrote:
> > Hello guys,
> >
> > I'm having a lot of trouble trying to install a Django app on a sha
Carlos Yoder wrote:
> Hello guys,
>
> I'm having a lot of trouble trying to install a Django app on a shared
> hosting (servage.net).
>
> The support people, even though they're very friendly an all, don't
> know crap about Django or how to install it. They're OK for normal
> tasks, but it gets
thanks.
I will take a look at the bugs mentioned by archatas - so there'll
probably be a new version for download later today.
SVN: I´ve never worked with SVN (well, besides using django), no idea
how to do the setup. It´d be very useful but I don´t have the time to
digg into that right no
This is fantastic stuff! I'll be taking a look at testing it out and
possibly implementing for a current project (thousands of image files
to manage).
Any plans for a SVN address?
-Phil
On 08/07/06, patrickk <[EMAIL PROTECTED]> wrote:
>
> today we´ve finished the test version of our django fil
Very nice, but there are some gotchas/bugs:
1. to make it work on Python 2.3, you need to change
line 198 in views.py
file_list.sort(cmp, lambda x: x[int(o)])
to
file_list.sort(lambda x, y: cmp(x[int(o)], y[int(o)]))
(sort method takes only the comparisson function as a parameter in
Pytho
Hello guys,
I'm having a lot of trouble trying to install a Django app on a shared
hosting (servage.net).
The support people, even though they're very friendly an all, don't
know crap about Django or how to install it. They're OK for normal
tasks, but it gets a little deeper, they forward my req
Hello all!
Is it somehow possible to include an exisiting php-script which prints
a table and some textual data (after some large calculations) in a
django template?
I rather don't want to port the existing php-script as it makes it job
well and is written by someone else.
Thanks in advance
--
In my opinion (having gone through this problem), that would only mask
the issue at hand, not solve it. I think it would be better if the code
in the documentation used RequestContext instead of Context, specially
the code in the tutorial.
Maybe also throw in why RequestContext is used and what d
still struggling with this - has anyone done it?
--~--~-~--~~~---~--~~
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 grou
50 matches
Mail list logo