actually django templates look more like php smarty templates.
i also am from php and am new to django.
i don't think installing django on windows is such a big deal.
i just unzipped the tar and copied it to the python25\lib\site-packages
\ folder
and that was it (i think)
On Oct 4, 9:52 pm, John
Hi, all
I am writing a GoogleTalk bot for my django site, but I don't know
were to initiate a xmpppy Client object in Django. Should I put it in
my project's __init__.py ? I need the bot to be always online so where
can I write a GLOBAL, long survival object in Django? How can I make
xmpppy Clien
Now, it's OK!
--~--~-~--~~~---~--~~
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 email to [EMAIL PROTECTED]
est schrieb:
> I am writing a GoogleTalk bot for my django site, but I don't know
> were to initiate a xmpppy Client object in Django. Should I put it in
> my project's __init__.py ? I need the bot to be always online so where
> can I write a GLOBAL, long survival object in Django? How can I make
You want add the style sheet still.css on admin control panel or
application?
On Oct 10, 11:21 am, "Nikola Stjelja" <[EMAIL PROTECTED]> wrote:
> i'm a noob in Django, and I'm currently learning it. I tried to use style
> sheets from an external css file but it didn't work. I copyed the code from
On 10/10/07, cschand <[EMAIL PROTECTED]> wrote:
>
>
> You want add the style sheet still.css on admin control panel or
> application?
To an application. It be really helpfull if you have an idea what i've done
wrong. :)
On Oct 10, 11:21 am, "Nikola Stjelja" <[EMAIL PROTECTED]> wrote:
> > i'm a
Thank you Christoph.
Yes I have tried a independent daemon, but that's a bit complicated
for a small site. Is there a simipler way?
Simple is better.
On Oct 10, 5:23 pm, Christoph Rauch <[EMAIL PROTECTED]> wrote:
> est schrieb:> I am writing a GoogleTalk bot for my django site, but I don't
> k
Hi yml,
On 9 Oct, 20:11, yml <[EMAIL PROTECTED]> wrote:
> In a very similar situation I have chosen option 2 for the following
> reasons:
> * the code was much more simple, at least simpler to maintain for me
> * Very hight control on the layout of the form.
Thanks for the reply. I think I'll
Hi all,
I have (as far as I am aware) installed the flatpages app correctly,
set up the MIDDLEWARE_CLASSES correctly, got a flatpages/default.html
template on my template path, got the leading and trailing slashes on
my flatpages (created via the admin interface) adn my SITE_ID is set
to the only
Regex is done via a custom validator. works pretty simple. here is an
example how i use to check if the entered data is a correct UK
postcode (zip code)
from django.core import validators
you might need to import some thing else as well (import datetime,
random, sha, re, os, Image, urllib thats
If you insist on integratin Jabber/XMPP into your site, I'd suggest
*NOT USING* xmpppy. This library is flawed in many ways and do not
conform many standards published in XMPP RFC. Use pyxmpp (http://
pyxmpp.jajcus.net/) instead. It is written by a member of Jabber board
and is more compatible wit
Thank you for your reaction at the first place! What I have understand
of it is that I have to define some class, in your case:
class Property(models.Model):
and in this class a method (function) in which we can define our
regular expression :
def isValidReferenceID0(self, field_data):
I'm new to python and django and I'm trying to follow the tutorial on
djangobook.com, but when i get to the step (chapter 3) where the first
piece of code should be executed (current_time) i get a NameError
telling me "name 'current_datetime' is not defined"
I'm running django 0.96 on python 2.5.
see indian nudu viedo and pics
http://chromoo.blogspot.com/
--~--~-~--~~~---~--~~
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 fr
I'm new to python and django and I'm trying to follow the tutorial on
djangobook.com, but when i get to the step (chapter 3) where the first
piece of code should be executed (current_time) i get a NameError
telling me "name 'current_datetime' is not defined"
I'm running django 0.96 on python 2.5.
Many thanks for you suggestion. But you see I am currently having
problem with integration, not XMPP.
I'll consider switch to pyxmpp when the integration is done.
On Oct 10, 5:59 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> If you insist on integratin Jabber/XMPP into your site, I'd suggest
> *N
I'm new to python and django and I'm trying to follow the tutorial on
djangobook.com, but when i get to the step (chapter 3) where the first
piece of code should be executed (current_time) i get a NameError
telling me "name 'current_datetime' is not defined"
I'm running django 0.96 on python 2.5.
Hi,
I am trying to add tinymce to flatpages in admin using
change_from.html in admin/flatpages/flatpage.
this is change_form.html
{% extends "admin_copies/change_form.html" %}
{% block extrahead %}{{ block.super }}
{% endblock %}
Django is returning error that
[10/Oct/2007 17:09:40] "GET /admi
you'd also need a python interpreter, but since you talked about
site-packages, I guess that's done already ;) You might also want to
setup a database.
El mi�, 10-10-2007 a las 00:43 -0700, lispingng escribi�:
> actually django templates look more like php smarty templates.
> i also am from php a
Any Suggestions?
Thanks,
Jim
--~--~-~--~~~---~--~~
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 email to [E
Hey all you Django Guru's!
I'm a recruitment consultant working within the interactive sector in
London. One of my clients has an excellent opportunity for an
experienced Django / Python Developer.
Suitable candidates ideally will have previously worked for a tier 1
type consumer internet compan
unzip the trunk file downloaded to libs/site-packages/ and try
import django from idle. If it returns no errors, that's it == django
is installed.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gro
Try to prepend a slash to your src attribute:
Should be
/media/js/tiny_mce/tiny_mce.js
not
media/js/tiny_mce/tiny_mce.js
hope that helps
pe
On 10 Okt., 13:50, AniNair <[EMAIL PROTECTED]> wrote:
> Hi,
> I am trying to add tinymce to flatpages in admin using
> change_from.html in admin/flatpages
Ah ha. never mind, i found the problem.
I have a context processor that is run on every page to determine if a
new flatpage needs to be created (we are using them in a help system).
Unfortunately, this was being run on the flatpag itself and couldn't
resolve the url as a view and so threw a 404.
Hi,
How can I get a TextareaWidget with form_for_model()?
I have a solution, but it is too much code. You need to create
an own DB-Field.
Is there a better solution?
models.py:
text=dbfields.TextareaField(max_length=128, rows=4, cols=40,
verbose_name="Text", blank=True)
dbfields.py:
clas
Thank alot for the reply. I tried that, then django won't return 404
error and tinymce won't work too. django returns
[10/Oct/2007 18:04:44] "GET /admin/jsi18n/ HTTP/1.1" 200 803
Thats all. No ref to /media/js/tiny_mce/tiny_mce.js
Any ideas?
--~--~-~--~~~---~--~
Hi everyone,
i can use some help here.
Im doing some unittesting for my app (yep i finally decided to start
testing my code) and encountered a strange "bug".
basically, I follow the testing documentation and try to do a get
request and then test the response context using something similar to
th
It seems like you have two issues here:
> > Page not found:
> > C:\Python25\lib\site-packages\django/contrib/admin/media\stil.css
First, check your settings.py to make sure your admin media folder
(ADMIN_MEDIA_PREFIX) and your application's media folder don't have
the same name.
> this is
Thank you Tylan your solution worked.
Here is the correct url pattern
(r'^assets/(.*)$', 'django.views.static.serve', {'document_root':
'c:/python_programi/cms/assets'}),
I made a mistake in the regular expression, plus I've changed the directory
name from media to assets.
Blame it on my poor k
On Wed, 2007-10-10 at 02:56 -0700, est wrote:
> Thank you Christoph.
>
> Yes I have tried a independent daemon, but that's a bit complicated
> for a small site. Is there a simipler way?
There is no guarantee that any Django process is going to be long
running or only called once -- there will be
I'm using version 0.96.
On Oct 9, 8:55 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 10-Oct-07, at 7:15 AM, coffeeho wrote:
>
> > I'm trying to implement the django-tagging app. My "links" app has a
> > tags field.
>
> could you clarify which version of django you are using
>
> --
>
> re
On Wed, 2007-10-10 at 14:51 +0200, Thomas Guettler wrote:
> Hi,
>
> How can I get a TextareaWidget with form_for_model()?
>
> I have a solution, but it is too much code. You need to create
> an own DB-Field.
Right there, as you realise, you're looking the right place. You're
trying to create a
On Wed, 2007-10-10 at 09:09 -0400, Malcolm Tredinnick wrote:
> On Wed, 2007-10-10 at 14:51 +0200, Thomas Guettler wrote:
> > Hi,
> >
> > How can I get a TextareaWidget with form_for_model()?
> >
> > I have a solution, but it is too much code. You need to create
> > an own DB-Field.
>
> Right th
> In fact this particular problem seems to be Gone on the newforms-admin
> branch, so that's another alternative for a workaround, if you (mrsynock)
> are feeling adventurous enough to switch to a branch.
Sadly I'm not very adventurous :-)
I'll just remove unique.
Thank you for answers
--
On 10/10/07, JimR <[EMAIL PROTECTED]> wrote:
>
> Any Suggestions?
The traceback from the error you are seeing might help people figure out
where the problem lies.
Karen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
Hi to all,
I have a problem on the configuration of the users in django.
In my plan I have 4 sites. I would want that in the admin view I can
specify for some users the possibility of being able to make
determined actions for determined sites.
For example, the user X can write the object Y only fo
Karen,
Thanks for the reply. I looked at the traceback, but it didn't help a
whole lot. It pointed me in the direction of the login function in
django.contrib.auth.views. I ended up taking the authentication and
login snippet from above and moving it to another view that I created,
calling that
If you look at f.errors or k.errors, you'll see:
{'cart_item_b': [u'This field is required.'], 'cart_item_a': [u'This
field is required.']}
The reason for this is that the forms data looks like:
{'a': '1', 'b': '2'}
or
{'a': 1, 'b': 2}
The tricks that you're playing with changing the name of the
On 10/9/07, coffeeho <[EMAIL PROTECTED]> wrote:
> As a CharField, there's no problem. When I changed it to get the
> sexier ManyToManyField it got weird. The tags appear and transfer
> between fields (in admin view) and save in the link like they should,
> but they do not appear in the tagging "ta
I want to create a pattern to get one or more occurences of, let's
say, slug.
/bla/
/bla/blob/
/bla/blob/blebber/
/bla/blob/blebber/and_a_lot_more
etc.
I get it working for up to two slugs with
('^([^/]+)/([^/]+)/$', 'page'),
def page(request, *slugs):
slug_list = []
for slug in slugs:
On Wed, 2007-10-10 at 09:25 -0700, Rob Slotboom wrote:
> I want to create a pattern to get one or more occurences of, let's
> say, slug.
>
> /bla/
> /bla/blob/
> /bla/blob/blebber/
> /bla/blob/blebber/and_a_lot_more
> etc.
>
> I get it working for up to two slugs with
>
> ('^([^/]+)/([^/]+)/$',
You'd need row-level permission for that, and that's outside of the
admin's intended philosophy. Though, there's such a branch being
developed, and I can recall seeing somewhere a django app for that
purpose. Just google it and it should pop up.
Also, since row-level permission is not built into
Hi Malcolm,
SMART
Thanks
Rob
--~--~-~--~~~---~--~~
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 email to [
I get this error:
unsupported operand type(s) for +: 'NoneType' and 'int'
referred to this snippet of code, debug informations are pointing to
the line where the ChangeManipulator is:
-
articolo = Articolo.objects.get(codice = c)
try:
On Oct 9, 9:50 pm, Derek Anderson <[EMAIL PROTECTED]> wrote:
> well, is 7.04, site-packages is here:
> /usr/lib/python2.5/site-packages/
>
Well, not I put deseb directory here
> but your problem obviously precedes this. did you muck with you
> manage.py file?
No, I did not touch manage.py. m
Hi,
I'm a Django newbie (just finished the tutorial on djangobook.com). I'm
about to try building a blog with Django to learn some more and I was
wondering if there's some sort of DJANGO_ROOT that specifies the path to the
root of your project.
The djangobook tipped us to use Python's __file__ fo
thank you, Chris.
The solution of my problem is therefore very difficult to implement.
The branch of which you speak to me is still in testing. And however
it seems that it cannot resolve my problem completely.
Therefore not are others (simpler) solutions?
MarcoX
On 10 Ott, 18:31, Chris Hoeppne
Thank you Oliver for your answer.
On 7 Okt., 22:19, olivier <[EMAIL PROTECTED]> wrote:
> Calling a template seems a little bit overkill.
Of course. But I just write some stuff to get my grip on Python again,
haven't used it for a long time. I grabbed the newest version of
"Learning Python" and
Hey,
I finally got a file upload working and now i want to be sure of what
people are uploading.
I am trying to write some custom validators, but have a little
difficulty about starting.
One thing that i think should be considered in the file field, is the
option 'unique'.
when ever i set it equa
> class Property(models.Model):
> def isValidUKPostcode(self, field_data):
> p = re.compile(r'^(GIR
> 0AA|[A-PR-UWYZ]([0-9]{1,2}|([A-HIK-Y][0-9](|
> [0-9]|[ABEHMNPRVWXY]))|[0-9][A-HJKSTUW]) [0-9][ABD-HJLNP-UW-Z]{2})$')
> if not p.match(field_data['postcode']):
>
On Wed, 2007-10-10 at 10:19 -0700, Hugh Bien wrote:
> Hi,
>
>
> I'm a Django newbie (just finished the tutorial on djangobook.com).
> I'm about to try building a blog with Django to learn some more and I
> was wondering if there's some sort of DJANGO_ROOT that specifies the
> path to the root of
Even watch the War in Iraq live and uncensored from your Laptop or PC
for FREE after a small onetime installment fee. 1,000's more
stations. http://jblog.ipodpsp.hop.clickbank.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
I would swear that I posted a response to this earlier today, but it
doesn't seem to show up in the group. The problem you're having is
because of the 'cart_item_' that you are adding in. It is not being
added into the dictionary that is assigned to the form's data.
>>> f.fields
{'cart_item_a':
@ Nader : i think you got it, just give it a try! if it doesnt work
django will tell you anyway ;) You define a function that gets called
on validation of the field is the very abstract view of it as i
understand it.
On Oct 10, 6:34 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> > class Property(mo
Just a quick announcement, though created without any for knowledge of
djangogigs, a group of us got together last Saturday with the proposal
of creating a fully functional web app from idea to production in 6
hours.
We were given the seed idea of an app that would help you remember
things you ha
Can someone help me with the following error. It occurs when I restart
Apache and try to load the Admin page. When I refresh, the Admin page
comes up, however the Documentation, Change Password, and Log Out
links call http://localhost/admin/. I reinstalled Django, but it did
not help.
TypeError
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote:
>
> Can someone help me with the following error. It occurs when I restart
> Apache and try to load the Admin page. When I refresh, the Admin page
> comes up, however the Documentation, Change Password, and Log Out
> links call http://localhost/admi
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote:
>
> Can someone help me with the following error. It occurs when I restart
> Apache and try to load the Admin page. When I refresh, the Admin page
> comes up, however the Documentation, Change Password, and Log Out
> links call http://localhost/admin
Hello,
I'm working on a website with Django and I'm new to django, python and
webdevelopment. I use the latest django svn-version.
I have a few pages/templates and they worked. But I think about to simplify
the source-code with the right use of django and python. I think my views
are complicated r
Honestly, I do not know what that means. How do I check this?
On Oct 10, 4:41 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote:
>
>
>
> > Can someone help me with the following error. It occurs when I restart
> > Apache and try to load the Admin page
# C:\Python25\lib\site-packages\django\core\urlresolvers.py in
reverse
274. return self._resolve_special('500')
275.
276. def reverse(self, lookup_view, *args, **kwargs):
277. try:
278. lookup_view = get_callable(lookup_view, True)
279. except (ImportError, AttributeError):
280. raise NoR
Question 1 is solved. the brackets are wrong. right way is:
{% for event in events %}
event.get_thumbnail_url
{% endfor %}
I would be appreciate if there would be any ideas to my second question
Bernd
On Wed, 2007-10-10 at 23:46 +0200, Bernd wrote:
> Hello,
>
> I'm working on a w
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote:
>
> Honestly, I do not know what that means. How do I check this?
Apologies-- I assumed that the problem had something to do with
unicode and localization.
http://www.djangoproject.com/documentation/i18n/#if-you-don-t-need-internationalization-in-
Question 1 is solved. the brackets are wrong. right way is:
{% for event in events %}
event.get_thumbnail_url
{% endfor %}
I would be appreciate if there would be any ideas to my second question
Bernd
On Wed, 2007-10-10 at 23:46 +0200, Bernd wrote:
> Hello,
>
> I'm working on a web
Just a quick question about templates: I'm coming from a templating
system (html_template_sigma - ouch, I know) where you are able to hide
and show blocks like tpl.hideBlock('block_name'). ANY clue how I might
go about mimicking this behavior until we have a chance to revamp how
our templates are
Given the following models:
class ModelA(models.Model):
name = models.CharField(max_length=10)
class ModelB(models.Model):
a = models.ForeignKey(ModelA)
name = models.CharField(max_length=10)
I'd like to perform a query for ModelA objects that have no ModelB
objects referring to them. Is
Hi Casey,
You may want to take a look at ticket #1050.
http://code.djangoproject.com/ticket/1050
- Ben
On 10/10/07, Casey T. Deccio <[EMAIL PROTECTED]> wrote:
>
> Given the following models:
>
> class ModelA(models.Model):
> name = models.CharField(max_length=10)
>
> class ModelB(models.Mode
Consider community and the things people do with python. Would it be
natural to move Game like coding to Django
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
Are you sure that articolo is not None or that c is not an int or
None?
On Oct 10, 12:48 pm, Gio <[EMAIL PROTECTED]> wrote:
> I get this error:
> unsupported operand type(s) for +: 'NoneType' and 'int'
>
> referred to this snippet of code, debug informations are pointing to
> the line where the C
I recently attempted to implement a very large form using the newforms
library, and I discovered that if a form contains more than 45 fields
it generates a "too many values to unpack" error when you try to
render it in a template. Does anyone know if this is deliberate
(either because of some Pyt
for your second question, i think you could use the ifchanged template
directive on a list of all your media information. Similar to what
you're doing, but you don't have to build a dictionary, the templates
will print when the field on ifchanged changes. something like that I
think.
J
On Oct
Hello,
Simple question, I have a database table called Orders. I want to
delete this table so that when I do 'python manage.py syncdb' the
table will get recreated. I want to make some modifications to the
columns in the table and I can't seem to do the with SQLite. I don't
want to delete the
On 10/11/07, Greg <[EMAIL PROTECTED]> wrote:
...
> Do I need to do this with my sqliteman software
Yes.
> or ca I do something
> like Orders.delete() in my djano command prompt.
No.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
I am trying to follow the method in
http://code.djangoproject.com/wiki/AddWYSIWYGEditor
. I still can't get django find the files textareas.js and
tiny_mce.js. it's returning 404. Please help. Thank you
--~--~-~--~~~---~--~~
You received this message because you
On 10/11/07, AniNair <[EMAIL PROTECTED]> wrote:
>
> I am trying to follow the method in
> http://code.djangoproject.com/wiki/AddWYSIWYGEditor
>
> . I still can't get django find the files textareas.js and
> tiny_mce.js. it's returning 404. Please help. Thank you
>
What's your admin URL and what
My admin url ishttp://localhost:8000/admin/flatpages/flatpage/1/
The url being requested is
[11/Oct/2007 10:21:35] "GET /admin/flatpages/flatpage/1/media/js/
tiny_mce/tiny_m
ce.js HTTP/1.1" 404 3644
[11/Oct/2007 10:21:35] "GET /admin/flatpages/flatpage/1/media/js/
tiny_mce/textar
eas.js H
On 10/11/07, AniNair <[EMAIL PROTECTED]> wrote:
>
> My admin url ishttp://localhost:8000/admin/flatpages/flatpage/1/
> The url being requested is
> [11/Oct/2007 10:21:35] "GET /admin/flatpages/flatpage/1/media/js/
> tiny_mce/tiny_m
> ce.js HTTP/1.1" 404 3644
> [11/Oct/2007 10:21:35] "GET
Hello,
I have the following field in my Orders class
delivery_method = models.ForeignKey(Delivery)
I want to be able to add a Order record and not specify a Delivery
option when the order is initially created.
I've tried
delivery_method = models.ForeignKey(Delivery, null=True)
and
delivery_met
On 10/11/07, Greg <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have the following field in my Orders class
>
> delivery_method = models.ForeignKey(Delivery)
>
> I want to be able to add a Order record and not specify a Delivery
> option when the order is initially created.
>
> I've tried
>
> delivery
I am trying to have tinyMCE for flatpages... Should I be using a model
for that?
--~--~-~--~~~---~--~~
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.c
On 10/11/07, AniNair <[EMAIL PROTECTED]> wrote:
>
> I am trying to have tinyMCE for flatpages... Should I be using a model
> for that?
Ah, sorry, I missed that.
Did you follow these steps?
http://code.djangoproject.com/wiki/AddWYSIWYGEditor#UsingTinyMCEwithflatpages
If so, you've just got your
if I do:
articolo = Articolo.objects.get(codice = c)
print articolo.id
everything goes right, it prints the right number
I'm on Django 0.96, btw
On 11 Ott, 05:38, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wro
Am Mittwoch, 10. Oktober 2007 15:09 schrieb Malcolm Tredinnick:
> On Wed, 2007-10-10 at 14:51 +0200, Thomas Guettler wrote:
> > Hi,
> >
> > How can I get a TextareaWidget with form_for_model()?
> >
> > I have a solution, but it is too much code. You need to create
> > an own DB-Field.
> What you w
83 matches
Mail list logo