Re: How to print a graph

2012-08-03 Thread Frank Stüss
> 
> <mailto:django-users@googlegroups.com>.
> 
> To unsubscribe from
> this group, send email to
> django-users
> +unsubscr...@googlegroups.com
> 
> <mailto:django-users%
> 2bunsubscr...@googlegroups.com>.
> 
> For more options,
> visit this group at
> 
> 
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> --
> 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
> 
> 
> 
> <mailto:django-users@googlegroups.com>.
> 
> To unsubscribe from this
> group, send email to
> django-users
> +unsubscr...@googlegroups.com
> 
> <mailto:django-users%
> 2bunsubscr...@googlegroups.com>.
> 
> For more options, visit
> this group at
> 
> 
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> --
> 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
> django-users
> +unsubscr...@googlegroups.com.
> For more options, visit this
> group at
> 
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> Best regards,
> -- 
> Daniel Molina Wegener  [dot] cl>
>         System Programmer & Web Developer
> Phone: +56 (2) 979-0278 | Blog:
> http://coder.cl/
> 
> 
> -- 
> 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 django-users
> +unsubscr...@googlegroups.com.
> For more options, visit this group at
> 
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> 
> 
> -- 
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> 
> 
> 
> 
> 
> 
-- 
Armaturen und Fittings Stüss e.K.
Frank Stüss + Inhaber
Tel. +49+6187-5019 + FAX. +49+6187-91725
Kilianstädter Straße 25 + D-61137 Schöneck
email frank.stu...@stuess.de <http://www.stuess.de>
Sitz Schöneck, HRA5340, Amtsgericht Hanau
USt.-ID: DE252310440 


Fördermitglied der Wirtschaftsjunioren 
Hanau-Gelnhausen-Schlüchtern
Umfassende Infos: http://www.wj-hanau.de
Senator #68128


-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Use Django to implement my GUI!

2012-05-16 Thread Frank Stüss
t; brief I'd like to use the 
> django framework features to design my Gui
> like i want, customize 
> interactions between the gui and the backend,
> and choose a good web 
> server for the production. 
> 
> Thank you for advance
> 
> -- 
> You received this message because you are subscribed
> to the Google Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/uZMPKqBO1JcJ.
> To post to this group, send email to
> django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> 
> 
> -- 
> ngont...@epitech.net
> sympav...@gmail.com
> 
> Aux hommes il faut un chef, et au chef il faut des hommes!
> 
> 
> 
> 
-- 
Armaturen und Fittings Stüss e.K.
Frank Stüss + Inhaber
Tel. +49+6187-5019 + FAX. +49+6187-91725
Kilianstädter Straße 25 + D-61137 Schöneck
email frank.stu...@stuess.de <http://www.stuess.de>
Sitz Schöneck, HRA5340, Amtsgericht Hanau
USt.-ID: DE252310440 


Fördermitglied der Wirtschaftsjunioren 
Hanau-Gelnhausen-Schlüchtern
Umfassende Infos: http://www.wj-hanau.de
Senator #68128


-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Store base64 data in database with imagefield ?

2012-05-15 Thread Frank Stüss
Hi,
maybe you could use http://djangosnippets.org/snippets/1669/

Greetings

Am Dienstag, den 15.05.2012, 17:36 +0530 schrieb Nikhil Verma:
> Hi 
> 
> I had similar situation where a textfield (which was made a markup
> editor by applying css and all) was given where people come in write
> anything and discuss about their topics; you can imagine like a forum.
> So i made some regular expressions to allow videos to show in an
> iframe and image to open up in a fancy box.
> Your case is similar to my case where image has to be shown in a fancy
> box when a user clicks on that.
> 
> 
> So i had to use jquery like this:-
> 
> Step 1) Write the importing scripts line in base.html
> 
> Step 2) Textfield which i was showing  on templates put a class and
> then call this jquery. Luckily that solved my problem
> 
> $(document).ready(function(){
> $("a.fancybox").fancybox({type:'image'});
> });
>  
> 
> Hope that helps you.
> 
> On Tue, May 15, 2012 at 5:25 PM, bussiere bussiere
>  wrote:
> Does anyone tried to store only Base64 info in databse of an
> image
> instead of a file with django image field ?
> 
> Do you have any idea how to do it ?
> 
> Or some hints to give me ?
> 
> regards and thanks
> Bussiere
> 
> 
> 
> "Les nouvelles technologies offrent pleins de nouvelles
> possibilités,
> pleins de possibilités d'erreurs surtout en fait."
> insurance.aes256 : http://goo.gl/gHyAY
> -BEGIN PGP PUBLIC KEY BLOCK-
> Version: GnuPG v1.2.1 (MingW32) - WinPT 0.7.96rc1
> 
> mQGiBE9sjdsRBADsY+DaDgj+pDuGLNVL6Dc+ghCxaEBK
> +9nwBvKPGIUocz13V42P
> 5Jn/NJ9zRgZNdg5XbhohN2ltas8Nr09rrRQXbBk8zjCg/Qr0a4LmfA3j128SwCfZ
> aTe5zlo/WSSuGv6kWGe/KZrLmiQoZRTDbZzqWyZxuJRkcpgsZc
> +jYRXJHwCgualT
> LpC23Ja3plM6J6noFaqAlMUEAKZGDadSS/BW4gckw9XqSHRex7/XyWU4sqVQlhMy
> 5DEIba7H8cU6grww
> +p/cYa3OCocv5Mycf6MbWDCPrtsG0X08u8PgEaE29BsLIgSm
> JF6r8y4Rgwj5xyCMTaxql82S+tZHyScpAoQ0a+xlTwxMZMuwK9p6b7oipXHL
> +UPN
> sDfkBACoYLS4PQPFotqWI96j83NNLwEumUzA6Rqyas8w6Xwr51quA65y/0nBmMmp
> l58tKN7eyc5+bIpRX5bGG6ktCUHnfzk9uvnG7peilWzYT6
> +AJ3gbBgMGLBPByJBN
> NH
> +nLjzsh4PzIxuSHLMiK5FkDNE2B95kaahIg42SQPT80LyvDLQlYnVzc2llcmVf
> cHJpdmF0ZSA8YnVzc2llcmVAZ21haWwuY29tPohZBBMRAgAZBQJPbI3bBAsHAwID
> FQIDAxYCAQIeAQIXgAAKCRAYpzZWoPP7b0h0AJ4n9feBF2FH4JUGhLU3XL3eIrOX
> 9gCfZbN4JHYl/nRLL4uHrceRUk1M9Pm5Ac0ET2yN3hAHAK5MypLMT50yklt1n/pQ
> MjrFXuvM9IQvVyQemHMUBqKqxPTVMJLn86mR5mTLMqs
> +WVAqei8GTsQeSSvHyIbk
> 8RvYrKY7aK2RVZUV1dHQ6PII0w3BI5C0L9GM/UyIq0VRXTW6zjp9hS/xgn5SrQad
> VIdGQKFVJa9h5/AzgjseARMQRkTQA/xX5/WmHxXaXUPhGxCeFsoqs53UFz1rkHYx
> mus2WiD0gHbJ58DiMlVmupeNumi4e9wa
> +mYuW4qGwjzsQn9ZFNdoiUFzQrqZa6o+
> Son
> +yZpGe/H9VidrWR5LhwD7AAMGBv9bhswvwpQ23X0kGItv7/jHVr/RJui7FAXY
> mOM4WAoUv/5ttPHf8OifWmeUDPlzm4txvR5a7t4hhVDehek1J7FEVvfG
> +ffcHiPP
> kkFaUv2EgrXziozt/Vkr2nngsKO5FpRJe9GSqn68uZirhwbkHSKX6LPNFTWSYR3E
> fefnsCaP82OJDBFGFMg2aMsz9QL85bg58fgHU972kLTePXUVAh3gaxb6qpjwZt2b
> yrCGJ/rnmIc/IWH8TJtHI5Yf3Abx2vlFTtzRH0CwVXuO0msjcfRS8NSm/ih5
> 0ssElxKU6IhGBBgRAgAGBQJPbI3eAAoJEBinNlag8/tvoBEAn2Yqu0UFC5OSjD1Y
> JQ00FFjNVestAJ0XctcbmhKaFuQ46SccW8C2JDG/xA==
> =+VZi
> -END PGP PUBLIC KEY BLOCK-
> 
> --
> 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 django-users
> +unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> 
> 
> 
> 
> -- 
> Regards
> Nikhil Verma
> +91-958-273-3156
> 
> 
> 
> -- 
> 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 django-users
> +unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

-- 
Armaturen und Fittings Stüss e.K.
Frank Stüss + Inhaber
Tel. +49+6187-5019 + FAX. +49+6187-91725
Kilianstädter Straße 25 + D-61137 Schöneck
email frank.stu...@stuess.de <http://www.s

Re: Scientific Data Frontend with Django

2009-08-03 Thread Frank Stüss
;>>>>   
>>>>>>>> files, and it's turning out pretty well. I haven't yet tried
>>>>>>>> 
>>>>> googlecharts,
>>>>>   
>>>>>>>> but it looks promising.
>>>>>>>> 
>>>>>>>> The main difficulty he had with Matplotlib was transitioning to
>>>>>>>> Apache/mod_python after working with the Django development server.
>>>>>>>> 
>>>>> The
>>>>>   
>>>>>>>> Matplotlib commands he was calling worked fine on his desktop, but
>>>>>>>> 
>>>>> then
>>>>>   
>>>>>>>> complained of a non-existent X11 connection once he tried the code on
>>>>>>>> Apache. The solution is one additional line of code, and is detailed
>>>>>>>> 
>>>>> at
>>>>>   
>>>>> http://matplotlib.sourceforge.net/faq/howto_faq.html#matplotlib-in-a-...similar
>>>>>  problems.
>>>>>   
>>>>>>>> Nick
>>>>>>>> 
>>>>>>>> On Wed, Jun 17, 2009 at 11:08 PM, Vincent 
>>>>>>>> 
>>>>> wrote:
>>>>>   
>>>>>>>>> That sounds like a great idea. Something i have been meaning to try
>>>>>>>>> for a while but haven't gotten around to.
>>>>>>>>>   
>>>>>>>>> For a class website i did try to use matplotlib to create graphs from
>>>>>>>>> user provided data within django but couldn't figure out how to get
>>>>>>>>>   
>>>>> it
>>>>>   
>>>>>>>>> to work smoothly. Ended up using Jacobs googlecharts templates
>>>>>>>>>   
>>>>> instead
>>>>>   
>>>>>>>>> (see link below).
>>>>>>>>>   
>>>>>>>>> http://github.com/jacobian/django-googlecharts/tree/master
>>>>>>>>>   
>>>>>>>>> The following also looks nice.
>>>>>>>>>   
>>>>>>>>> http://code.google.com/p/google-chartwrapper/
>>>>>>>>>   
>>>>>>>>> Hope you share code examples.
>>>>>>>>>   
>>>>>>>>> Vincent
>>>>>>>>>   
>>>>>>>>> On Jun 17, 4:21 pm, Rajesh D  wrote:
>>>>>>>>>   
>>>>>>>>>> On Jun 17, 2:06 pm, blaine  wrote:
>>>>>>>>>> 
>>>>>>>>>>> Hey guys,
>>>>>>>>>>>   I have a lot of data from various testing samples (simple 2D
>>>>>>>>>>> plotting points) in .csv format.  I am looking to design a system
>>>>>>>>>>>   
>>>>> to
>>>>>   
>>>>>>>>>>> manage things like plotting, calculations, selecting individual
>>>>>>>>>>> samples and tests, etc. by creating a data manager with an
>>>>>>>>>>>   
>>>>> intuitive
>>>>>   
>>>>>>>>>>> interface.
>>>>>>>>>>>   
>>>>>>>>>>> My question: Has anyone used (or heard of using) a Django-powered
>>>>>>>>>>> application as a quick and powerful frontend to a scientific
>>>>>>>>>>>   
>>>>>>>>> database?
>>>>>>>>>   
>>>>>>>>>>> It seems to me that the tools built into Django (administration
>>>>>>>>>>>   
>>>>> site,
>>>>>   
>>>>>>>>>>> generic views & templates) would lend themselves quite easily for
>>>>>>>>>>>   
>>>>>>>>> this
>>>>>>>>>   
>>>>>>>>>>> purpose... not to mention that I am already using NumPy and
>>>>>>>>>>>   
>>>>>>>>> MatPlotLib
>>>>>>>>>   
>>>>>>>>>>> to plot my data sets so the integration with these tools would be
>>>>>>>>>>> easy.
>>>>>>>>>>>   
>>>>>>>>>> Yes, it should be.
>>>>>>>>>> 
>>>>>>>>>> You might even consider taking a representative subset of your
>>>>>>>>>> datamodel and defining it in a sample Django project to see how
>>>>>>>>>> 
>>>>> that
>>>>>   
>>>>>>>>>> goes.
>>>>>>>>>> 
>>>>>>>>>> -RD
>>>>>>>>>> 
>>>>>>> --
>>>>>>> Hernan Olivera
>>>>>>>   
>
> >
>
>   


-- 
Armaturen und Fittings Stüss e.K.
Frank Stüss + Inhaber
Tel. +49+6187-5019 + FAX. +49+6187-91725
Kilianstädter Straße 25 + D-61137 Schöneck
email frank.stu...@stuess.de <http://www.stuess.de>
Sitz Schöneck, HRA5340, Amtsgericht Hanau
USt.-ID: DE252310440


--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: group traffic

2006-09-02 Thread Frank Stüss

Am Freitag, 1. September 2006 21:27 schrieb Waylan Limberg:
> Now if someone added the abilty for a certain forum package to also
> act like a mailing list, that would be something to think about.

+1 

And if it was written in django and could be used as an example of excellent 
programming it would be even better. 

Anyone? 8-)

Frank

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: A combined django + apache + mod_python distro

2006-08-31 Thread Frank Stüss

I am dreaming of a www.colinux.org package with this configuration. 
May be this would be nice, too. Or Linux on a stick as django server to hand 
out a customer specific offline catalogue on a nifty usb-stick (*sigh*).



Am Donnerstag, 31. August 2006 10:31 schrieb Iwan Memruk:
> Another question: is there something that prevents distributing a full
> pre-configured environment for Django, including Apache and mod_python?
> Looks like the licensing for each of the three projects allows that. Such a
> distro would be very appealing to the users and it would fit the RAD
> ideology of Django. What do you guys think?

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: mod_python whoes

2006-08-31 Thread Frank Stüss

Thanks again for anticipation.

The strange thing is: Apache *has* been restarted (as of message of my 
provider). That's why i talked about a cache or something. I found others 
experiencing this problem, too. We will see.

I totally agree that a special module reloading mechanism doesn't belong into 
django code and i shurely can live with this (if the problem mentioned is 
solved). If ever, it must be a middleware something which is totally 
transparent to mod_python and django.

Greetings,
Frank

Am Donnerstag, 31. August 2006 09:01 schrieb Graham Dumpleton:
> Frank Stüss wrote:
> > Thanks to you.
> >
> > So it is like it is. No short changes on a virtually hosted production
> > server with mod_python :)
> >
> > And my second problem doesn't belong in this list. After googling again i
> > found that it may be caused by a wrong compiled mod_python (two
> > mod_python versions with to python versions on the server). Very strange
> > behaviour: every other request apache complains about errors that have
> > been fixed sessions ago like missing templates or the like. The next
> > browser reload is ok and so on. Like mod_python sessions were cached even
> > after restarting apache and some requests got the 'wrong' mod_python
> > instance. Strange.
>
> I don't know what your other problem is, but it sounds like what you
> are
> experiencing is that your requests are being serviced by different
> Apache
> child processes. Further, that over time you made changes to the code
> base which either were wrong and caused an error with the wrong code
> then persisting in one process, or you renamed files required by code
> still loaded and in use by some other Apache child process. In other
> words,
> different Apache child processes have different versions of code
> loaded.
> Which of the child processes services a request is essentially random
> so
> which error you see, or whether your code works is also random.
>
> The only way you will solve this when using Django is to restart
> Apache.
>
> Making a module importing system that can handle automatic module
> reloading is quite hard and there are a lot of considerations. I don't
> know
> too much about how Django is implemented, but the feeling I get is that
> even if they were to try and implement a proper module reloading
> system,
> it would require some changes to how applications are structured in
> directories. This is in part because it is impossible to do automatic
> reloading on complex code which is organised as Python packages. To
> move Django away from using traditional Python packages would mean
> structural changes in user code which people aren't going to want.
>
> Graham
>
>
>

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: mod_python whoes

2006-08-30 Thread Frank Stüss

Thanks to you. 

So it is like it is. No short changes on a virtually hosted production server 
with mod_python :)

And my second problem doesn't belong in this list. After googling again i 
found that it may be caused by a wrong compiled mod_python (two mod_python 
versions with to python versions on the server). Very strange behaviour: 
every other request apache complains about errors that have been fixed 
sessions ago like missing templates or the like. The next browser reload is 
ok and so on. Like mod_python sessions were cached even after restarting 
apache and some requests got the 'wrong' mod_python instance. Strange.

Have fun djangoing,
Frank




Am Donnerstag, 31. August 2006 02:20 schrieb Graham Dumpleton:
> Kenneth Gonsalves wrote:
> > On 30-Aug-06, at 3:35 PM, Frank Stüss wrote:
> > > on a production server with mod_python, how can i force reloading
> > > all .py
> > > files without restarting apache?
> >
> > you cant
>
> To clarify, this is only the case where the Python code file is loaded
> by Django using its own methods for importing modules.
>
> As far as mod_python itself goes, there are mechanisms for having
> code files it loads be reloaded when changed, but Django isn't going
> to use that feature of mod_python directly, as that then means there
> is an unwanted dependency on mod_python.
>
> That said, for versions of mod_python < 3.3, the module reloading
> ability does have some problems. See:
>
>   http://www.dscpl.com.au/articles/modpython-003.html
>
> for details. Pretty well all of these issues are addressed in yet to be
> released mod_python 3.3 however.
>
> Now it is probably technically feasible that Django could harness the
> improved module reloading abilities in mod_python 3.3 in such a way
> that it would be transparent and not cause a dependency in user code
> on mod_python, thus allowing you to be able to do what you want, but
> I tend to think that you would have a hard time getting such a thing
> added into Django. :-)
>
> Graham
>
>
>

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: mod_python whoes

2006-08-30 Thread Frank Stüss

:-) 

I prayed and hoped though...



> you cant

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



mod_python whoes

2006-08-30 Thread Frank Stüss

Hi all,
somewhat off topic may be: 

on a production server with mod_python, how can i force reloading all .py 
files without restarting apache? 
touch .../handler.py does not work for me.

And strange: every now and then an 'old' error reappears in my browser, even 
if i cleared the cache. Eg. i changed urls.py and in 3 of 8 cases the change 
didn't happen. Where is the cache?

Thanks,
Frank

(http://www.basketball-chaos.de if you want to reproduce 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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



group traffic

2006-08-29 Thread Frank Stüss

Hi folks,
since this list is getting bigger day by day..
Eam.. what about splitting this group up in say two or three lists?

django.newbies  (like me :-)
django.apps
django.views

Looking for better names/categories.

As all of you answerers are doing a great job helping, may be this would help 
even more. Does this make sense? 

Greetings,
Frank



--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Custom db fields / creation.py

2006-08-17 Thread Frank Stüss

Hi all,
is there a best practice to overwrite/extend 
django.db.backends..creation without doing it in django source?

I want to have a spezialiced ImageField.

Thanks,
Frank

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: FileField not getting populated back to the form.

2006-08-15 Thread Frank Stüss

Hi Pat,
maybe you should use it as in admin form: display the recent file path with 
get__url in your form.

With image upload fields, i got me a special formfield, displaying the recent 
image, so you can only say {{ form.myImage }} in your templates.

Greets,
Frank

  

Am Dienstag, 15. August 2006 10:47 schrieb paddy:
> Hi,
>
> I've read through alot of posts on filefields but cant find anything
> that's obviously related to my problem. I've got a model that has a
> filefield, charField, textField, few dateTime fields, foreign keys,
> charfield with choices. A good mix.
>
> Right now when the user populates the form to create one of these
> objects, and if there are errors the form is re-displayed to the user.
> All my fields are populated with the data the user entered except the
> FileField. This is really annoying as the User needs to re-browse for
> the file again.
>
> Below is some of the code for the view:
>
> if it's a post:
> new_data = request.POST.copy()
> new_data.update(request.FILES)
>
> errors = manipulator.get_validation_errors(new_data)
>
> if errors:
>form = forms.FormWrapper(manipulator, new_data, errors)
>context['form'] = form
>return render_to_response('myCreateForm.html', context)
>
> I've tried it with "new_data = manipulator.flatten_data()" before the
> FormWrapper line but no success.
>
> If someone could help me on this it would be great. Maybe it's not
> possible? I cant be the only one!
>
> Regards,
> Pat.
>
>
> 

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Distribute Django program to run on a local computer

2006-07-31 Thread Frank Stüss

Maybe i misunderstood but what about  then?

You run a linux web server with django and could start it from theoretically 
every platform linux runs on. In parallel to the host system, not as 'live' 
system. You can access it via the host systems browser, so this should be 
possible. 

Listening to Nirvana, i am thinking about a local web app for my customers  
running on django (a catalogue system) and therefore i should have the same 
problem. 

Frank

Am Dienstag, 1. August 2006 02:22 schrieb Malcolm Tredinnick:
> On Mon, 2006-07-31 at 16:52 -0700, Joseph Heck wrote:
> > I've been doing exactly that myself - I have a VMWare image (not
> > exactly LiveCD, but VMWare player is free...) that I use for a
> > development environment. At OSCON I was taking briefly about it. I
> > need to clean it up and post it. Right now it's sort of beleagured
> > with all my additional stuff.
>
> The original poster required running on Mac as well, though. That rules
> out VMWare (Mac on Intel isn't nearly widely enough deployed yet to be a
> reasonable assumption, even if VMWare supports it).
>
> Live CDs have a slight drawback in that they take over your computer
> whilst you are using them, so evaluating a submission whilst taking
> notes requires two computers and you lose the ability to cut and paste
> and easily take screenshots, etc, without a lot of fiddling around
> running a remote viewer.
>
> So we still have a bit of thinking to do to reach nirvana here.
>
> Malcolm
>
>
>
> 

--~--~-~--~~~---~--~~
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]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---