email - inline image

2012-02-21 Thread ionic drive
Hello djangos, I want to add a *.jpg image to an html-formated/email signature. I am not sure if this approach is correct, please help: image_file = open(settings.PROJECT_ROOT+'/static/images/image_name.jpg', 'rb') #get the image file msg_image = MIMEImage(image_file.read()) #with proper MIME t

Re: email - inline image

2012-02-21 Thread ionic drive
ith-images-to-send-with-python-django Thank you very much Tom! Kind regards, ionic On Tue, 2012-02-21 at 13:49 +, Tom Evans wrote: > On Tue, Feb 21, 2012 at 12:42 PM, ionic drive wrote: > > Hello djangos, > > > > I want to add a *.jpg image to an html-formated/email

Re: email - inline image

2012-02-21 Thread ionic drive
Tom, you are totally right! The problem was me - not google ;-) I knew that. Did not know what I am looking for. I am sorry! & thank you very much Tom! Cheers ionic On Tue, 2012-02-21 at 14:23 +, Tom Evans wrote: > On Tue, Feb 21, 2012 at 2:18 PM, ionic drive wrote: >

logs complaining about 404 url(css-files)

2012-03-17 Thread ionic drive
hello django friends, my log files do complain about strange 404 errors when serving static css files to IE, because I do use special CSS files to please IE-versions via @import for CSS. The css files are included as follows in the html code: @import url({{ media_url }}css/sty

Re: logs complaining about 404 url(css-files)

2012-03-17 Thread ionic drive
sagade wrote: > try using {{ STATIC_URL }} instead of {{MEDIA_URL}} - It has worked > for me, and where it doesn't, pass settings.STATIC_URL as a context > variable from the view. > > > On Sat, Mar 17, 2012 at 11:27 PM, ionic drive > wrote: > >

Re: logs complaining about 404 url(css-files)

2012-03-18 Thread ionic drive
, ionic On Sat, 2012-03-17 at 23:36 +0530, yati sagade wrote: > try using {{ STATIC_URL }} instead of {{MEDIA_URL}} - It has worked > for me, and where it doesn't, pass settings.STATIC_URL as a context > variable from the view. > > > On Sat, Mar 17, 2012 at 11:27 P

VERY strange unicode encode error on internet connection

2012-03-18 Thread ionic drive
hello django friends, I am facing a VERY strange unicode encode error on internet connection. No Error when network(LAN/internet) is disabled. Situation: In a template I do have a link to a site(google) in this a URL a '/u' is included. I am testing this in my virtual-machine so I c

Re: VERY strange unicode encode error on internet connection

2012-03-18 Thread ionic drive
Sun, Mar 18, 2012 at 8:37 AM, ionic drive wrote: > > hello django friends, > > > > I am facing a VERY strange unicode encode error on internet connection. > > No Error when network(LAN/internet) is disabled. > > > > Situation: > > > >

Re: VERY strange unicode encode error on internet connection

2012-03-19 Thread ionic drive
le rendering: 'ascii' codec can't decode byte 0xe2 in position 31: ordinal not in range(128) I fixed this by doing a force to string conversion on url: log.debug('Using "%s" as title for "%s"' % (title, str(url))) I am not sure if this is a clean sol

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-12 Thread ionic drive
great: I think this is a good sellery for India if you add some bonuses. good luck On Thu, 2012-04-12 at 20:27 +0100, Cal Leeming [Simplicity Media Ltd] wrote: > Further update on this - budget has changed so, we can now offer > a higher rate and a part time alternative. > > > > * 1500$/mon

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread ionic drive
+1 great! On Sat, 2012-06-30 at 16:10 +0100, Cal Leeming [Simplicity Media Ltd] wrote: > Hi all, > > > > As some of you know, I did a live webcast last year (July 2011) on our > LLG project, which explained how we overcome some of the problems > associated with large data processing. > > > A

Re: Difficulties deploying Satchmo store

2012-07-02 Thread ionic drive
Dear Jonathan, I answer on Django as there is nothing Satchmo specific in your message. This link should help you on start up: http://lmgtfy.com/?q=mod_wsgi +django A developer with your skills really should know to ask straight forward questions and to use search engines. Please Jonathan, your

Re: Difficulties deploying Satchmo store

2012-07-03 Thread ionic drive
Dear Jonathan, I know a lot of things about you... you are an Orthodox Christian Author, your skills are Ajax, CGI, CMS, CSS, Django, HTML, IA, JSON, JavaScript, LAMP, Linux, Perl, PHP, Python, SQL, UI, Unix, Usability, UX, XHTML, XML,... I know you only check the first results in search engines,

Re: Difficulties deploying Satchmo store

2012-07-03 Thread ionic drive
import django.core.handlers.wsgi > application = django.core.handlers.WSGIHandler() > > > And a few days of Googling later, I find deployment more difficult > than any other part of building a Django site. Could you lmgtfy a > query whose top results will work? > &

memcached - Errors and Solution - please provide comments!

2011-11-10 Thread ionic drive
Hello django friends, Problems: 1) MemcachedKeyCharacterError: Control characters not allowed 2) MemcachedKeyLengthError: Key length is > 250 We where conflicted with problem number one, but the solution should also work for the second error which did not happen on our system. System-In

Re: memcached - Errors and Solution - please provide comments!

2011-11-10 Thread ionic drive
wrote: > On 10 November 2011 08:54, ionic drive wrote: > Hello django friends, > > Problems: > > 1) MemcachedKeyCharacterError: Control characters not allowed > 2) MemcachedKeyLengthError: Key length is > 250 >

Re: memcached - Errors and Solution - please provide comments!

2011-11-10 Thread ionic drive
ok, so removing the invalid keys is the best solution. great thank you guys! ionic On Thu, 2011-11-10 at 11:36 +, Tom Evans wrote: > On Thu, Nov 10, 2011 at 11:25 AM, ionic drive wrote: > > Yes Malcolm, > > > > thanks for the great and smart answer! > > You are

Re: [] Re: memcached - Errors and Solution - please provide comments!

2011-11-13 Thread ionic drive
Hello and thanks for the respond. My knowledge on caching was little. I used it, but I never programmed it my self. So I had no idea about how the keys would be stored. The solution was... I did not mess with my memcached.py or anything else. I just use it as everybody else is using it. The prob

Re: ERP in DJango; what's available? — I'm thinking of writing a DJango wrapper to OpenERP

2011-12-14 Thread ionic drive
OpenERP: think about tryton http://www.tryton.org cheers ionic On Thu, 2011-12-15 at 03:55 +1100, Alec Taylor wrote: > What's available in terms of ERP on DJango? > > If there isn't anything that is maintained and has a strong > feature-set, I'm thinking of writing a DJango wrapper to OpenERP (

Re: Creating websites like Amazon/Ebay using Django

2011-12-16 Thread ionic drive
Hi cata, Sounds great your plans. Django is exactly suitable for your needs. How many years are you going to investigate into the project? Best wishes ionic On Fri, 2011-12-16 at 22:07 +1100, Alec Taylor wrote: > Also satchmo http://www.satchmoproject.com/ > > On Fri, Dec 16, 2011 at 9:43 PM, I

Re: Creating websites like Amazon/Ebay using Django

2011-12-16 Thread ionic drive
satchmo project. good luck ionic On Fri, 2011-12-16 at 17:47 +0530, abhay hegde wrote: > Great ! Thanks everyone for the response. Django is the way to go > then. > > @ionic drive :- Not sure as it's just in the initial stage. I will > have to set aside time for this one.

Re: django-localeurl and SEO

2012-01-20 Thread ionic drive
ionic On Fri, 2012-01-20 at 11:48 +0100, Thorsten Sanders wrote: > You could add sitemaps in the google webmaster tools or make a sitemap > in the root dir which contains links to the other sitemaps. > > On 19.01.2012 17:59, ionic drive wrote: > > > Hello django fri

Re: File upload limits

2011-06-05 Thread ionic drive
This i guess is not a django setting. Its a setting of your webserver (Nginx, Apache2, etc.) If you do use Nginx as an example, this setting would be client_max_body_size. http://www.rockia.com/2011/01/how-to-change-nginx-file-upload-size-limit good luck scrapper On Sun, 2011-06-05 at 06:57 -

Re: Setting up Django with fastCGI on centos with apache

2011-07-15 Thread ionic drive
Hello Rick, Address already in use, tells you that on 127.0.0.1 specific port 8000 already a process is running. I guess you have your Apache already running their, right!? you have to listen with your Apache to the proper port where fastcgi is serving the data for Apache. I think you have to re-