That's a very interesting thought Todd.
I don't know enough about Ruby to follow the code properly, but the
idea is pretty neat...
On Thursday 19 Jan 2006 9:32 pm, [EMAIL PROTECTED] wrote:
> 1- I write this in my page.py: full_image =
> meta.ImageField(upload_to ="/media/images/", null = True, blank =
> True )
why are you putting the absolute path in upload_to? It should be
upload_to="images/" and not "/media/images/"
--
On Thu, 19 Jan 2006 13:54:31 - Luke Skibinski Holt wrote:
> Ordinarly the sig is plain 'Luke', however there is already one 'Luke'
> posting, so as not to defraud your good self, my posts are signed with
> my full name. Hope this didn't cause you too much confusion.
If you wanted we could co
Re: Upgrading models... [without blowing away existing data]
Maybe mix your languages?
http://wiki.rubyonrails.com/rails/pages/UnderstandingMigrations
[EMAIL PROTECTED] wrote:
Yes, this is what I meant. I'm looking for a way to use admin ui forms
in my templates.
Here is what I have found, you have two major ingredients for this:
Forms and Manipulators: http://www.djangoproject.com/documentation/forms/
Create/Update/Delete Generic Views:
h
Luke Skibinski Holt wrote:
Absolutely - I had never thought of anything like that before. It's
pretty daunting compared to the easy way (automating the
dumping/reloading and manual editing of sql files). I think the
implementation of such a beast would be very difficult though - there
are too ma
Ah, that's the incantation I needed.
I had two fields in my model that I had changed from TextField to
CharField and hadn't added a maxlength argument to the constructor. If
I had looked at the SQL commands more carefully I would have seen it.
Thanks!
Mitch
Yes, this is what I meant. I'm looking for a way to use admin ui forms
in my templates.
On 1/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> jobs:~/Projects/media mitch$ python manage.py sqlreset tunica | mysql
> --user=tunica --password=notmypassword tunica
> ERROR 1064 (42000) at line 18: You have an error in your SQL syntax;
> check the manual that corresponds to your MySQL
Along these same lines, I am trying to write some scripts to allow me
to automatically do a sqlreset and then reload data. The problem I'm
running into is that mysql dies when I pipe the output of the sqlreset
command to it. Specifically:
jobs:~/Projects/media mitch$ python manage.py sqlreset t
I checked what error is output on your site one more time. There's
something interesting: check your settings.py, line 36:
34 # URL that handles the media served from MEDIA_ROOT.
35 # Example: "http://media.lawrence.com";
36 i
--->
On Thursday 19 January 2006 13:15, [EMAIL PROTECTED] wrote:
> I was wondering what would be the
> easiest and most portable way to add selected admin functionality to my
> public site, i.e. I would like certain apps to be fully editable by
> authenticated users without directing them to admin site
Hi, I've just started exploring Django framework and it looks like I
might stay with it for longer. I created my first few applications,
which offered instant admin site. I was wondering what would be the
easiest and most portable way to add selected admin functionality to my
public site, i.e. I w
Afternoon wrote:
I'd like to have a solution to this problem too.
My specific problem is that I have a bunch of sites in development on my
laptop:
http://localhost/coolsite/
http://localhost/boringsite/
http://localhost/newhomepage/
And these then get deployed to production se
I checked the output of our web app. The problem seems to be connected
with DB settings. The output says that
raise ImproperlyConfigured, "Could not load database backend: %s. Is
your DATABASE_ENGINE setting (currently, %r) spelled correctly?
Available options are: %s" % \
24 (exc, DAT
[EMAIL PROTECTED] wrote:
I had the same problem. This is what worked for me.
Make a media directory somewhere for your project, like
/work/django/media/
add that directory to your apache conf, ie
#...
and add this line to your virtual host section
Alias /media/ "/work/django/media
Thank you for your reply
My urls.py looks like
###
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^admin/', include('django.contrib.admin.urls.admin')),
(r'^Index/$','boardproject.apps.board.views.board.Index'),
)
and .htaccess like this
###
Dear ALL
I still have a problem with the picture feild here what i have done
1- I write this in my page.py: full_image = meta.ImageField(upload_to
="/media/images/", null = True, blank = True )
2-i opened the admin page and load the pictuer i need
i found that it creat a folder and it's path is /
On 1/19/06, PythonistL <[EMAIL PROTECTED]> wrote:
> After a long time and with a big help of Eugene Lazutkin I figured out
> that the problem
> was CRLF where Linux expect LF.(I use XP and most files edit on my XP
> windows and then upload to Dreamhost server.) So, from now on I know I
> must use d
And one more thing - the paths (Index, admin, Test) when called without
trailing slash return error 404. Again, one has to take a look on url
config.
Hi PythonistL,
When I tried your link with the trailing slash, i.e.,
http://www.egsmtrade.com/django.fcgi/
I got usual urconf error from django. As you have debug on, I was able
to see your paths in url.py. Next I gave several adresses, i.e., Index
(why is it in upper case?), Test, but each time I
hi,
i have an ImageField in a model.
when i use the admin interface, everything is fine, except one thing:
the ImageField part consists of:
==
Currently: LINK
Change:
==
and the LINK is wrong. it's content is ok, but the HREF is empty.
example:
Currently: logos/firstlogo.png
so
Gábor Farkas wrote:
hi,
i have an ImageField in a model.
when i use the admin interface, everything is fine, except one thing:
the ImageField part consists of:
==
Currently: LINK
Change:
==
and the LINK is wrong. it's content is ok, but the HREF is empty.
example:
Currently: lo
> I haven't suggested this before because I wasn't prepared to implement
> it, but the discussion made the opportunity too ripe. ;-)
Absolutely - I had never thought of anything like that before. It's
pretty daunting compared to the easy way (automating the
dumping/reloading and manual editing of
No. My groups and sig were messed up and different to my email, which
had defaulted to something and the groups to something else. I was lazy
and finally fixed it all the other day.
Ordinarly the sig is plain 'Luke', however there is already one 'Luke'
posting, so as not to defraud your good self
On 1/19/06, tonemcd <[EMAIL PROTECTED]> wrote:
> Didn't realise stripogram was so open to those sort of exploits (I've
> only ever used it to get rid of the stuff that might mangle layout).
> There's obviously more to this than meets the eye.
Here are some interesting resources on the challenges
Yikes!
Didn't realise stripogram was so open to those sort of exploits (I've
only ever used it to get rid of the stuff that might mangle layout).
There's obviously more to this than meets the eye.
Thanks for the heads-up Simon.
Cheers,
Tone
On 15 Jan 2006, at 23:22, tonemcd wrote:
If your articles have HTML in them, you'll need to be careful that no
'dangerous' HTML is included (javascript is the most common). A good
library is stripogram -
http://www.zope.org/Members/chrisw/StripOGram/readme
While I still strongly advocate not
On 15 Jan 2006, at 23:22, tonemcd wrote:
If your articles have HTML in them, you'll need to be careful that no
'dangerous' HTML is included (javascript is the most common). A good
library is stripogram -
http://www.zope.org/Members/chrisw/StripOGram/readme
Stripogram is inadequate for protect
I also bought a webhosting with Dreamhost to install Django. I checked
the instructions at http://wiki.dreamhost.com/index.php/Django and
wanted
to verify that FastCGI is working. But I could not make the script
below work.
#
#!/usr/bin/python2.3
from fcgi import WSGIServer
def test_app(e
30 matches
Mail list logo