Hello everybody,
I am writing a blog app where I am syncing my magnolia links to
my weblog. I am using the magnolia API for this. In my link model I
have a 'add_date' field to sync the created time of the magnolia
link.
In the syncing function I am using
add_date =
On Sun, 2008-04-13 at 22:04 -0700, Brandon Taylor wrote:
> Hello everyone,
>
> I'm pretty new to Django, so please bear with me.
>
> When I'm defining a model, and I want to return a value to use in the
> admin for the information to be displayed as such:
>
> from django.db import models
>
>
Hello everyone,
I'm pretty new to Django, so please bear with me.
When I'm defining a model, and I want to return a value to use in the
admin for the information to be displayed as such:
from django.db import models
class Link(models.Model):
name = models.CharField()
url =
It isn't out of date per se. It is, however, going to be revamped when we
have a stable replacement. You can find more information on the wiki at
http://code.djangoproject.com/wiki/NewformsAdminBranch
-justin
On Mon, Apr 14, 2008 at 12:32 AM, meppum <[EMAIL PROTECTED]> wrote:
>
>
On Sun, 2008-04-13 at 21:30 -0700, Rob Hudson wrote:
> On Apr 13, 6:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
> > Do you mean that you are coming across a case of trying to store 4-byte
> > UTF-8 sequences in MySQL? Or do you mean that you've managed to create a
> > database table
On Sun, 2008-04-13 at 21:23 -0700, meppum wrote:
> I was looking at the why the admin site handles authentication and
> noticed that there are three private methods in
> django.contrib.admin.views.decorators: _display_login_form,
> _encode_post_data, _decode_post_data. It looks like these do
On Apr 13, 6:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> Do you mean that you are coming across a case of trying to store 4-byte
> UTF-8 sequences in MySQL? Or do you mean that you've managed to create a
> database table with the incorrect encoding and only realised this after
> you've
Once newforms-admin hits you will be able to change that if you
want(without hacking on the django source).
On Apr 13, 11:08 pm, meppum <[EMAIL PROTECTED]> wrote:
> I simply meant that after a few failed password attempts the user is
> not presented with a CAPTCHA or something. I'll keep all
On Sun, 2008-04-13 at 20:36 -0700, meppum wrote:
> I noticed that most django sites including djangoproject.com and even
> curse.com allow their admin sites to be accessed through the web. This
> seems like a bit of a security concern as someone could create a bot
> to attempt to collect
On Sun, Apr 13, 2008 at 10:36 PM, meppum <[EMAIL PROTECTED]> wrote:
> Is this common practice or am I wrong about the admin sites ability to
> be cracked with brute force?
I was curious about this once, too, so I ran a dictionary attack bot
I, erm, "obtained" against my Django admin once. It
There's no reason you have to put it at /admin/ , you could always put
it somewhere else(/boogy_man/) for security through obscurity.
On Apr 13, 10:36 pm, meppum <[EMAIL PROTECTED]> wrote:
> I noticed that most django sites including djangoproject.com and even
> curse.com allow their admin sites
You need to actually be serving static content:
http://www.djangoproject.com/documentation/static_files/
On Apr 13, 10:25 pm, Duke <[EMAIL PROTECTED]> wrote:
> Hi
> Can any tell me how to display a image in the hrml in Django
>
>
>
> Hello, Image
>
>
>
>
>
> this html is not displaying
Hi
Can any tell me how to display a image in the hrml in Django
Hello, Image
this html is not displaying the image
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
acch!-- idiocy located and destroyed.
there was a null field in the countries list.
Yahoo!! thanks!
On Apr 13, 9:26 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Sun, Apr 13, 2008 at 9:48 PM, steve skelton <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > thanks - I've tried it both ways and with
I would do per request url routing:
http://www.b-list.org/weblog/2007/nov/06/urlconf/
On Apr 13, 9:17 pm, "Cole Tuininga" <[EMAIL PROTECTED]> wrote:
> Hey folks -
>
> I'm looking to make url "routing" choices based on some values from
> the session. That is, I want to change the url->view
yes I am working with legacy data transferred from FileMaker. That's
why I put in the meta table so the "real" import will work, once it's
ready for production.
There are actually 5 "look up" tables as I call them:
lu_country <-- any countries already selected from the existing data.
the main
On 14-Apr-08, at 8:25 AM, Karen Tracey wrote:
> I just tried that command and it works for me. Are you behind a
> corporate firewall? I've seen reports that they sometimes
> interfere with svn traffic, depending on how they are configured.
> The usual workaround is to use https://
On Sun, 2008-04-13 at 19:53 -0700, meppum wrote:
> Okay. So how would I have both an "access gate" that people would be
> redirected to if they try to access a page that requires them to be
> logged in first and a homepage that allows them to login, but
> redirects them to the "access gate" if
On Sun, Apr 13, 2008 at 9:48 PM, steve skelton <[EMAIL PROTECTED]>
wrote:
>
> thanks - I've tried it both ways and with __str__ get the error
>
> __str__ returned non-string (type NoneType).
>
That's odd...
> the top-level error dump is
>
> Request Method: GET
> Request URL:
Hey folks -
I'm looking to make url "routing" choices based on some values from
the session. That is, I want to change the url->view mapping based on
the session variables. Problem is, I can't seem to figure out how to
access the session from urls.py. I understand that outside views I
can
On Mon, 2008-04-14 at 03:58 +0200, Monica Leko wrote:
[...]
> In settings.py I have
>
> INSTALLED_APPS = (
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.sites',
> 'django.contrib.admin',
> 'django.contrib.auth',
> "app.app_chart",
> )
thanks - I am also confused about whether I have the "latest and
greatest" install as the djangoproject lists .96 as the latest release
and running
svn co http://code.djangoproject.com/svn/django/trunk/ in cmd.exe
returns an error
PROPFIND request failed on '/svn/django/trunk'
the latest
My appname was app, ant then I renamed app to app_chart. My
application works like a charm, but when I tried to run som unittests
today, i got som unexpected error which wasn't there when app was the
name of application
File "C:\Python25\lib\site-packages\django\db\models\base.py", line
169,
thanks - I've tried it both ways and with __str__ get the error
__str__ returned non-string (type NoneType).
the top-level error dump is
Request Method: GET
Request URL:http://localhost:8000/admin/papers_admin/paper/35/
Exception Type: TypeError
Exception Value:
On Sun, 2008-04-13 at 18:28 -0700, steve skelton wrote:
> sorry I forgot to specify - am using 0.96.1 (django) and MySQL 5.0.51a
> (server) and 5.1.11 (client) and my local install is on Vista laptop
> with Apache and PHP also installed.
Unicode support went in after 0.96 was released (and
Rob,
On Sun, 2008-04-13 at 13:28 -0700, Rob Hudson wrote:
[...]
> For those of us having a very similar problem elsewhere, what's a good
> general solution?
Depends on the general problem. :-)
Do you mean that you are coming across a case of trying to store 4-byte
UTF-8 sequences in MySQL? Or
On Sun, 2008-04-13 at 06:20 -0700, Leon wrote:
> Hi,
> I use django admin to manage a table. There is a hyperlink for
> each object in the change_list template, which will bring me to the
> change_form template. I want to change that hyperlink and redirect it
> to another url to handle. I
On Sun, Apr 13, 2008 at 9:28 PM, steve skelton <[EMAIL PROTECTED]>
wrote:
>
> sorry I forgot to specify - am using 0.96.1 (django) and MySQL 5.0.51a
> (server) and 5.1.11 (client) and my local install is on Vista laptop
> with Apache and PHP also installed.
>
The problem is your code below is
Try changing __unicode__ to __str__. The unicode merge was after .96 and
therefore it isn't looking for __unicode__ to define the name of the field.
Hope that helps,
Michael
On Sun, Apr 13, 2008 at 9:28 PM, steve skelton <[EMAIL PROTECTED]>
wrote:
>
> sorry I forgot to specify - am using
On Sun, 2008-04-13 at 13:22 -0300, Claudio Escudero wrote:
> Hi,
>
> What is block-like tag?
Something with a start and end tag. For example, {%block %}...{%
endblock %}, or {% if %}{% else %}...{% endif %}
Regards,
Malcolm
--
The cost of feathers has risen; even down is up!
sorry I forgot to specify - am using 0.96.1 (django) and MySQL 5.0.51a
(server) and 5.1.11 (client) and my local install is on Vista laptop
with Apache and PHP also installed.
On Apr 13, 8:24 pm, steve skelton <[EMAIL PROTECTED]> wrote:
> Trying to get admin on my system to load values based on
Trying to get admin on my system to load values based on related
tables on db. I have set the FK on the papers table to tie with the
PK of each look-up table and set models like so:
class LuPaperContentEra(models.Model):
paper_content_era = models.CharField(blank=True, maxlength=150)
def
What about Python libraries like PIL or ReportLab?
On Apr 11, 10:42 pm, "Daniel Lindsley" <[EMAIL PROTECTED]> wrote:
> We'd like to announce the firstDjangoDash
> (http://www.djangodash.com/) to the community.DjangoDashis a web
> application building competition forDjangodevelopers. The gist is
a.f wrote:
> am intersting in web desgining & puplishing
> e books & soft wear
> seo & ather stuff
>
If you can read this, you're already subscribed to the group.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Sun, Apr 13, 2008 at 7:36 PM, Gonzalo Delgado
<[EMAIL PROTECTED]> wrote:
> Hi there, I'm trying to move my django projects to 0.97-pre (trunk). The
> first error I get is this one (when trying to load the admin interface in a
> small project):
>
> TemplateSyntaxError at /admin
> Template
Hi there, I'm trying to move my django projects to 0.97-pre (trunk). The first
error I get is this one (when trying to load the admin interface in a small
project):
TemplateSyntaxError at /admin
Template u'admin/base_site.html' cannot be extended, because it doesn't exist
Is there a guide for
am intersting in web desgining & puplishing
e books & soft wear
seo & ather stuff
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
On Mar 21, 4:19 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> OK, got it now. Turns out the answer is in the clear-as-mud error message,
> sort of:
>
> Warning: Incorrect string value: '\xF0\x90\x8C\xBC\xF0\x90...'
>
> x'f0908cbc' is a valid 4-byte UTF-8 value, only MySQL doesn't support
Hi all,
I need to find out in a pre_save signal if a value of a model has
changed. So far i had no luck with a solution. Is there a way to do
that besides loading the instance again in the pre_save signal?
cheers
Pat
--~--~-~--~~~---~--~~
You received this
Look at the docs:
http://www.djangoproject.com/documentation/templates_python/#parsing-until-another-block-tag
On Apr 13, 8:22 pm, "Claudio Escudero" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> What is block-like tag?
> =/
>
> Thanks,
> Claudio
>
> On Sat, Apr 12, 2008 at 10:26 PM, Malcolm Tredinnick <
Hi,
What is block-like tag?
=/
Thanks,
Claudio
On Sat, Apr 12, 2008 at 10:26 PM, Malcolm Tredinnick <
[EMAIL PROTECTED]> wrote:
>
>
> On Sat, 2008-04-12 at 18:45 -0300, Claudio Escudero wrote:
> > Hi,
> >
> > Please, is there any way to put tag inside tag?
>
> No, this isn't possible. Use a
With help from the forum members and through many pages on the net, I
was able to build a stand-alone app. I've blogged about it, with the
hope that it might be helpful to someone else. Feel free to comment if
there are any improvement.
http://www.jjude.com/index.php/archives/70
Thank you all,
Do you use proper django branch with model inheritance support? Trunk
doesn't
On Apr 13, 5:37 pm, Julien <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to have a model inherit from another which has a custom
> field:
>
> import uuid
> from django.db import models
> from django.db.models.fields
> On Sun, Apr 13, 2008 at 8:34 AM, Manuel Meyer
> <[EMAIL PROTECTED]> wrote:
>
> > No, that's they way it is documented as working. The one-to-one
> > field acts as the primary key for the model, and primary keys can't
> > be edited. From http://www.djangoproject.com/documentation/model-
> >
Hi,
I'm trying to have a model inherit from another which has a custom
field:
import uuid
from django.db import models
from django.db.models.fields import CharField
class UuidField(CharField):# <- The custom field
def __init__(self, verbose_name=None, name=None,
Hi,
I use django admin to manage a table. There is a hyperlink for
each object in the change_list template, which will bring me to the
change_form template. I want to change that hyperlink and redirect it
to another url to handle. I didn't want to customize the current
change_form for this
Glad to hear that queryset-refactor is almost ready.
Currently, I noticed that there are few SQL portability issues and few
old queryset API issues (eg in admin). I already filed #6956 and
#6957. I do some heavy testing of this branch and I will report
anything that goes wrong.
Regards,
--
On Sun, Apr 13, 2008 at 8:34 AM, Manuel Meyer <[EMAIL PROTECTED]>
wrote:
>
> > No, that's they way it is documented as working. The one-to-one
> > field acts as the primary key for the model, and primary keys can't
> > be edited. From http://www.djangoproject.com/documentation/model-
> >
> No, that's they way it is documented as working. The one-to-one
> field acts as the primary key for the model, and primary keys can't
> be edited. From http://www.djangoproject.com/documentation/model-
> api/#one-to-one-relationships:
>
> This OneToOneField will actually replace the
Hi again,
I seem to have come a cropper with this. Although it returns the
fields I want on other models, on my Project model it seems to affect
it's functions and attribues For example, in this line:
projects = [project for project in Project.projects.all() if
How to Choose an Unlimited Web Hosting
1) Visit www.axealis.com to get domain and hosting
2) Unlimited Bandwidth ,this mean unlimited data transmission for your
client access.
2) Unlimited Space , you can upload file for unlimited .
3) Unlimited Email , many of email account can created .
5) SSL
Hi Malcolm,
values() seems to be the way to go for now. I've extracted some of
the code back to a context variable, and anything within a view I'll
just have to try and make it as efficient as possible, while still
removing the user object from the context.
On Sun, Apr 13, 2008 at 11:59 AM,
Hi Malcolm,
I've been using the branch on a project in development for a few weeks
now, and haven't come across any issue yet - although I can't say I've
pushed it to its limits.
Glad to hear it's close to be merged to trunk.
Thanks so much for this massive contribution!
Best,
Julien
On Apr
We're getting pretty close to merging queryset-refactor into trunk and
would like to do this as soon as practical. There are still a couple of
enhancements to add (#5420, mostly), one bug to fix (#5937) and some
internal tweaking to do, but all the main stuff is ready to be used.
So if anybody
On Sun, 2008-04-13 at 11:46 +0100, Tane Piper wrote:
[...]
> What I want to
> know is there any way I could simplify the method and have it remove
> the password field any time a user object is being selected as part of
> a related query??
Not really, unless you use values(). For any model, if
Hi there,
I'm currently building a Django app that uses JavaScript and Ajax.
One of the things I am doing is within each view, as well as
outputting a variable as standard, I also JSON encode any objects on
the page and return them as well, so when the page loads, they are in
the DOM as values I
Apologies, I thought the class Admin was at the base didn't realise it
was under the class Polls. That has fixed it now.
Gary
On Apr 13, 8:31 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 13-Apr-08, at 3:54 PM, garazy wrote:
>
> > It does not appear in the admin when I login with
On 13-Apr-08, at 3:54 PM, garazy wrote:
> It does not appear in the admin when I login with the superuser
> account that got created when I installed the project. Please let me
> know what other information you need me to provide to debug this large
> problem.
please post your models.py file
Hi,
I am using the SVN version of Django version 0.97-pre-SVN-7419 on
Ubuntu Edgy with mysql database.
I have followed the tutorial, the shell code works fine and my DB is
hooked up correctly.
I have the admin working, I added the
class Admin:
pass
to the mysite/polls/models.py
On 13 Apr, 12:01, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
[snip]
> But, again, that won't work for this particular draft
> spec. Smells like a problem with the spec to me, since it restricts the
> options a fair bit and makes for somewhat unreadable names, but so be
> it.
Yeah, I didn't
On Sun, 2008-04-13 at 01:52 -0700, fizban wrote:
> Hi,
>
> Given that I'm using django-tagging to show a tagcloud, is there any
> way to, given "tag.font_size", to make the template print
> "tag.font_size" times the letter "v"?
>
> What I'm trying to accomplish is to make a tagcloud compliant
New version and rename of updater.py utility (see previous post
http://groups.google.com/group/django-users/browse_thread/thread/d9c16173c6ee2436).
Documentation here:
http://www.methods.co.nz/django/dupdater.html
Project repo and download here:
http://hg.sharesource.org/dupdater/
Cheers,
Hi,
Given that I'm using django-tagging to show a tagcloud, is there any
way to, given "tag.font_size", to make the template print
"tag.font_size" times the letter "v"?
What I'm trying to accomplish is to make a tagcloud compliant to the
htagcloud microformat draft.. so:
sometag <-
63 matches
Mail list logo