Hi,
I just noticed that the "View on site" link on the Admin change entry
page redirects to localhost/. The dev server is running on
localhost:8000 though.
The model being used is the Entry model from coltrane_blog[1] which has
a get_absolut_url method that looks like:
from django.db impo
Hi,
On 25.10.2008 13:48 Uhr, felix wrote:
> its gets the domain value from the Site object. I'm guessing that you
> have that domain set to "localhost"
thank you very much. That was excatly the problem.
Setting the site to localhost:8000 did the trick.
adi
--
Adi J. Sieker mobile: +4
On 25.10.2008 16:42 Uhr, Low Kian Seong wrote:
> Dear all,
>
> I am using generic views to create my forms without using the admin interface.
>
> When I try to recreate the form in my template using the form function:
>
> {{ form.as_p }}
>
> Everything is okay except that my date fields have no da
Hi,
On 27.10.2008 12:45 Uhr, redmonkey wrote:
> Pretty simple stuff. My problem is that I need to run a function at
> the auction_date of the catalogue that will do a few things like
> change the status of the catalogue, and send an email out to some
> admins.
>
> I've done some brief research, a
Since a django application is a normal python module you
could create a signals.py and import it in your applications __init__.py
or whatever pleases you.
a django application can contain whatever new files modules you want.
It has to respect somethings so that django recognises it as an applicat
On 29.10.2008 12:49 Uhr, Benjamin Buch wrote:
> The thing is, I don't want to tie the comments signals to a specific
> application.
> It's more of a project-wide thing.
>
> So I did put the code into signals.py, stuffed it into my project root
> (not in an app)
> and imported it in my project's __
On 30.10.2008 12:07 Uhr, Dennis Schmidt wrote:
> Hello there,
>
> I want the admin-site (and only the admin-site) to use ony of my own
> custom Managers. Is there a way to do this except by changing the
> default Manager "objects"?
>
As far as I know, the admin site uses the first manager not
On 04.11.2008 17:19 Uhr, webcomm wrote:
> How do I get the instance id from within an admin template? I want to
> add a link to view the instance, and I need the id to create that
> link. Like so...
>
> View this item
>
>
if your Model supplies a get_absolute_url method, then the Admin will
On 12.11.2008 18:52 Uhr, Israel Fdez. Cabrera wrote:
> Hi:
>
> I'm trying to upload some CSV file I need to import into a database;
> to do so I have the following Django form:
>
>
[code snipped]
> this Django template:
>
>
>
>
>
>
[code snipped]
> The problem is that in the view th
Hi,
if you are using 1.0 or newer, than you can use a file backend to
directly on S3.
Have a look if http://code.google.com/p/boto/ or
http://github.com/paltman/django-aws/tree/master
help you along.
adi
On 24.11.2008 18:35 Uhr, Alex Jonsson wrote:
> Hey everyone,
>
> I use Django together
Hi,
On 26.11.2008 10:32 Uhr, Seth Kaïne wrote:
> I'm learning about ORM, but it's not easy to understand the whole
> picture.
> I'm trying to create a "function" or a "filter" linked to my models.py
> or to PHPmyAdmin to give me a signal when something is changing.
> I'm making reseachs on signal
Hi,
Kasper Grubbe wrote:
> Hi guys.
>
> I have a date in my database. And i want to list all years and months
> in that, without duplicates. For an example i want to print out (only
> if they exists in the database):
>
> 2008:
> January
> August
> December
>
> 2007:
> September
> December
>
> I c
Lenny wrote:
> Hi!
> How can I assign a value to a model object field where the field name
> in a string?
>
Just like any other object as far as I know.
setattr(obj, fieldname, value)
adi
--~--~-~--~~~---~--~~
You received this message because you are subscri
Hi Marcin,
the syndb command doesn't change your tables it only creates them, so
any changes you make to the models after the first sync will have to
be created manually via pgadmin or whatever is your preferred tool.
Alternatively if you are still in development and don't need the data
in
Hi, Jason,
On 11.05.2008, at 16:46, Jason K wrote:
>
> Hi, having a little trouble regrouping a date list.
> I have an simple inclusion tag to get a unique list of months, as
> follows:
>
> def show_month_list():
>month_list = Article.objects.dates('pub_date', 'month',
> order='DESC')
>re
Hi,
On 11.05.2008, at 09:32, mwebs wrote:
>
> Thanks Alex, thats a good idea.
>
> But I want to have a more generic solution for this problem. There
> must be an other way than to write custom template tags. I think the
> passing-default-request-parameters approach is the solution, but I
> dont k
On 12.05.2008, at 15:13, M.Ganesh wrote:
> Thanks Ronny for your response, however this doesn't answer my
> requirement. Probably I've to state my requirement more clearly. I
> have
> various pages for general viewing where authentication is not
> required.
> But if a user decides to add a r
On 12.05.2008, at 18:57, RoMo wrote:
>
> Hello guys!
>
> First of all I don't know if I'm asking the right question, but i'll
> try to explain myself the best I can:
>
> I would like to know if in a view there is a way that after a "try:"
> and evaluate the expression as false, it justs ignores t
On 12.05.2008, at 20:59, M.Ganesh wrote:
>
> Adi Jörg Sieker wrote:
>>
>> On 12.05.2008, at 15:13, M.Ganesh wrote:
>>
>>> Thanks Ronny for your response, however this doesn't answer my
>>> requirement. Probably I've to state my requireme
Hi,
On 12.05.2008, at 22:07, Adi Jörg Sieker wrote:
> but the idea is the same.
>
> def login_view(request, next_url_from_page):
this might need to be a default parameter like:
def login_view(request, next_url_from_page=None):
> if request.method == 'POST':
>
api/#count
adi
>
>
> I tried with that and i get the next error:
>
> Incorrect integer value: '[]' for column 'Author_id'
> at row 1
>
> On May 12, 12:40 pm, Romo <[EMAIL PROTECTED]> wrote:
>> It works!!
>>
>> Thanks a lot for your
On 13.05.2008, at 16:18, phillc wrote:
>
> "I am new to web programming"
> "I am trying to use my own loginpage "
>
> is there a reason that contrib.auth doesnt meet your needs?
>
Good question. :)
adi
--
Adi J. Sieker mobile: +49 - 178 - 88 5 88 13
Freelance developer skype: adijsie
Hi,
On 14.05.2008, at 00:47, Michael Ellis wrote:
> results = paginator.page(pager)
shouldn't this be
results = paginator.page(pager).object_list
see http://www.djangoproject.com/documentation/pagination/
adi
--
Adi J. Sieker mobile: +49 - 178 - 88 5 88 13
Hi Eric,
On 14.05.2008, at 03:49, Eric Abrahamsen wrote:
> app_years = Appearance.objects.dates('app_date','year')
I don't know if it makes a difference and I'm new to django, but I've
used the dates method like so:
app_years = Appearance.objects.all().dates('app_date','year')
and it works l
Hi,
I'm new to django but from what I understand can use django without
models, then you'd have to do the loading of the data from your text
files yourself.
If you want to use models then you have to use some kind of database,
at minimum SQLite.
but someone else may prove me wrong.
adi
O
Hi,
On 14.05.2008, at 15:47, Jason Ourscene wrote:
>
> When i run the first command i get:
> 8 lrwxr-xr0x 1 root wheel 24 May 2 20:03 /usr/bin/python -> /opt/
> local/bin/python2.4
>
looks like your MacPorts install replaced the /usr/bin/python links
and now that you removed MacPorts the li
Hi,
the query parameter page=1 probably won't be there when you submit the
search form.
I 'd guess your forms action parameter is either empty or set to the
url of your search view.
Have you tried 'results': results.object_list in your
render_to_response?
regards
adi
On 14.05.2008, at
Hi,
what does the search method of your model do?
I can't find any reference of a search function in the docs.
adi
On 14.05.2008, at 22:26, Michael Ellis wrote:
>
> You're right. The form action was blank. I changed it to "/Catalog/
> search/?page=1". I'm now seeing the page parameter, but I'm
28 matches
Mail list logo