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 type
image_file.close()
msg.attach(msg_image)
#attach the image to the mail message.

so far so good:
the image gets sent with the email message and is attached as
"attachment.dat".

How can I reference this image now to see it appear inline in the mail
message!?



Please improve my code...
why is the image recognized as "attachment.dat" and not with proper
image_name???

Is this the right approach to send a signature with inline image?

Thanks for your help guys
ionic






-- 
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: email - inline image

2012-02-21 Thread ionic drive
Thx Tom,

as you guess I have already googled quite a lot. > 5hours.
My search was kind of "django inline image email" and subcultures.
And I actually found some techniques ... but I guess your approach is
best. 

I did not know that the magic chain I am looking for is "django mime
multipart email".

So for all future searchers: 
If you are interested in "django email inline image" or "django email
embedded image" please search for "django mime multipart email".
http://stackoverflow.com/questions/1633109/creating-a-mime-email-template-with-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 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 type
> > image_file.close()
> > msg.attach(msg_image)
> > #attach the image to the mail message.
> >
> > so far so good:
> > the image gets sent with the email message and is attached as
> > "attachment.dat".
> >
> > How can I reference this image now to see it appear inline in the mail
> > message!?
> >
> > 
> >
> > Please improve my code...
> > why is the image recognized as "attachment.dat" and not with proper
> > image_name???
> >
> > Is this the right approach to send a signature with inline image?
> >
> > Thanks for your help guys
> > ionic
> >
> >
> 
> You should really try to STFW before asking questions like this. You
> aren't the first person to want to do this.
> 
> http://stackoverflow.com/questions/1633109/creating-a-mime-email-template-with-images-to-send-with-python-django
> 
> This was the fifth link on a search for "django mime multipart email".
> 
> Cheers
> 
> Tom
> 

-- 
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: 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:
> > Thx Tom,
> >
> > as you guess I have already googled quite a lot. > 5hours.
> > My search was kind of "django inline image email" and subcultures.
> > And I actually found some techniques ... but I guess your approach is
> > best.
> >
> 
> FYI, the link I referenced is fourth in the list when you search for
> "django inline image email".
> 
> Cheers
> 
> Tom
> 

-- 
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.

<>

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/style_all_no_ie.css) all;







There is NO problem with IE8, but IE7 gives this error on connect:

localhost - - [17/Mar/2012:15:30:37 +0100]
"GET /url(/media/css/style_all_no_ie.css)%20all HTTP/1.0" 404 1128
"http://example.com/site/"; "Mozilla/4.0 (compatible; MSIE 7.0; Windows
NT 5.1)"

I guess it has to do something with the setup:
+NGINX to serve static files
+APACHE via mod_wsgi

The GOOD news are:
+everything works fine
+the css files get served as the should for all browsers (for IE7 too).

The BAD news:
+I want django to email me 404 errors via the "SEND_BROKEN_LINK_EMAILS =
True" parameter.
+But now I do get a lot of emails with 404 errors which are no real 404
errors.

Did someone of you already had that issue and is able to come up with a
solution to fix it?

Thank you very much!
ionic

-- 
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: logs complaining about 404 url(css-files)

2012-03-17 Thread ionic drive
hello yati,

thank you for your reply!
unfortunately the change from {{ MEDIA_URL }} to {{ STATIC_URL }} did
not fix the 404 error.

I think I do have a problem with django-localeurl redirection.

As soon as I have a fix, I post to the list.

Cheers,
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 PM, ionic drive 
> wrote:
> 
> 
> 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:
> 
>  href="{{ media_url }}css/style_base.css">
> 
> @import
> url({{ media_url }}css/style_all_no_ie.css) all;
> 
> 
> 
> 
> 
> 
> 
> There is NO problem with IE8, but IE7 gives this error on
> connect:
> 
> localhost - - [17/Mar/2012:15:30:37 +0100]
> "GET /url(/media/css/style_all_no_ie.css)%20all HTTP/1.0" 404
> 1128 "http://example.com/site/"; "Mozilla/4.0 (compatible; MSIE
> 7.0; Windows NT 5.1)"
> 
> I guess it has to do something with the setup:
> +NGINX to serve static files
> +APACHE via mod_wsgi
> 
> The GOOD news are:
> +everything works fine
> +the css files get served as the should for all browsers (for
> IE7 too).
> 
> The BAD news:
> +I want django to email me 404 errors via the
> "SEND_BROKEN_LINK_EMAILS = True" parameter.
> +But now I do get a lot of emails with 404 errors which are no
> real 404 errors.
> 
> Did someone of you already had that issue and is able to come
> up with a solution to fix it?
> 
> Thank you very much!
> ionic
> 
> -- 
> 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.
> 
> 
> 
> 
> -- 
> Yati Sagade 
> 
> (@yati_itay)
> 
> 
> 
> 
> -- 
> 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.



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

2012-03-18 Thread ionic drive
sorry friends,

bad news.
I stopped investigation further on that issue as it is not urgent and
minor.

I stopped sending mails on 404 errors and switched back to use the logs
to inspect 404s again.

Maybe in the future I am able to fix this strange 404 issue with
IE-versions. 

Kind regards,
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 PM, ionic drive 
> wrote:
> 
> 
> 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:
> 
>  href="{{ media_url }}css/style_base.css">
> 
> @import
> url({{ media_url }}css/style_all_no_ie.css) all;
> 
> 
> 
> 
> 
> 
> 
> There is NO problem with IE8, but IE7 gives this error on
> connect:
> 
> localhost - - [17/Mar/2012:15:30:37 +0100]
> "GET /url(/media/css/style_all_no_ie.css)%20all HTTP/1.0" 404
> 1128 "http://example.com/site/"; "Mozilla/4.0 (compatible; MSIE
> 7.0; Windows NT 5.1)"
> 
> I guess it has to do something with the setup:
> +NGINX to serve static files
> +APACHE via mod_wsgi
> 
> The GOOD news are:
> +everything works fine
> +the css files get served as the should for all browsers (for
> IE7 too).
> 
> The BAD news:
> +I want django to email me 404 errors via the
> "SEND_BROKEN_LINK_EMAILS = True" parameter.
> +But now I do get a lot of emails with 404 errors which are no
> real 404 errors.
> 
> Did someone of you already had that issue and is able to come
> up with a solution to fix it?
> 
> Thank you very much!
> ionic
> 
> -- 
> 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.
> 
> 
> 
> 
> -- 
> Yati Sagade 
> 
> (@yati_itay)
> 
> 
> 
> 
> -- 
> 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.



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 can turn on and off
internet connection.
the server is in my virtual-machine and the browser is in this
virtual-machine too.
So I am able to test the site with "internet connection" and without
"internet connection".

Now the VERY strange behavior:

  * When my internet connection is activated I do get the following
Template Error:

Caught UnicodeDecodeError while rendering: 'ascii' codec can't
decode byte 0xe2 in position 31: ordinal not in range(128)


  * When my internet connection is disabled everything works fine.


I did not know that my django - interpreter is internet connection
related!?

Please give me some insights on that problem.

Thank you very much!!!
Ionic





-- 
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: VERY strange unicode encode error on internet connection

2012-03-18 Thread ionic drive
Karen,

sometimes its only good to get pushed by someone else.
I also think, that the code is going down different paths.

I thought I might have overseen something.
I just have to inspect my code further.

Thanks for the hint
Ionic

On Sun, 2012-03-18 at 12:48 -0400, Karen Tracey wrote:

> On 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:
> > 
> > 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 can turn on and off internet
> > connection.
> > the server is in my virtual-machine and the browser is in this
> > virtual-machine too.
> > So I am able to test the site with "internet connection" and without
> > "internet connection".
> >
> > Now the VERY strange behavior:
> >
> > When my internet connection is activated I do get the following Template
> > Error:
> >
> > Caught UnicodeDecodeError while rendering: 'ascii' codec can't
> > decode byte 0xe2 in position 31: ordinal not in range(128)
> >
> > When my internet connection is disabled everything works fine.
> >
> >
> > I did not know that my django - interpreter is internet connection related!?
> >
> > Please give me some insights on that problem.
> >
> 
> Your code is going down some different paths in the two situations,
> why that is the case is hard to speculate on without more information.
> It's also pretty much impossible to give guidance on how to fix the
> UnicoceDecodeError without the full traceback from it.
> 
> Karen
> -- 
> http://tracey.org/kmt/
> 

-- 
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: VERY strange unicode encode error on internet connection

2012-03-19 Thread ionic drive
hello django friends,

issue found and solved.
The code which was causing the trouble:
log.debug('Using "%s" as title for "%s"' % (title, url))

as url is having a '/u' in the link this was causing the following error
message:
Caught UnicodeDecodeError while 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 solution to the problem.

Kind regards,
ionic


On Sun, 2012-03-18 at 13:37 +0100, 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:
> 
> 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 can turn on and off
> internet connection.
> the server is in my virtual-machine and the browser is in this
> virtual-machine too.
> So I am able to test the site with "internet connection" and without
> "internet connection".
> 
> Now the VERY strange behavior: 
>   * When my internet connection is activated I do get the
> following Template Error:
> Caught UnicodeDecodeError while rendering: 'ascii' codec can't
> decode byte 0xe2 in position 31: ordinal not in range(128)
> 
>   * When my internet connection is disabled everything works fine.
> 
> I did not know that my django - interpreter is internet connection
> related!?
> 
> Please give me some insights on that problem.
> 
> Thank you very much!!!
> Ionic
> 
> 
> 
> 
> 

-- 
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: [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$/month for 70 hours (20$/hour)
> * 2000$/month for 100 hours (20$/hour)
> 
> 
> Thanks
> 
> 
> Cal
> 
> 
> On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd]
>  wrote:
> 
> Hi all,
> 
> 
> 
> Another urgent position has come up in our company, applicant
> needs to have some experience with using Django but must also
> be comfortable with PHP (our clients are a 50/50 split between
> PHP and Django).
> 
> 
> --
> 
> 
> Simplicity Media Ltd are an established UK company providing
> bespoke IT solutions for a variety of clients across the
> globe.
> 
> We are currently looking for a flexible and diverse developer
> to maintain and extend our existing PHP deployments.
> 
> Our solutions are high volume (peaking at around 5000
> requests/minute), with extremely large databases (400 million+
> rows) and large content servers (15TB+ of media files).
> 
> The successful candidate should have at least 2 years
> commercial experience, be fluent OOP, and have a general
> understanding of what it means to be a good programmer.
> 
> We're looking for a real person with real emotion, not a
> corporate robot - and being a team player is absolutely
> critical. Our company attitude is firm but fair, we encourage
> a healthy mixture of fun/work, and we even have a 'NSFW' IRC
> channel!
> 
> Essential skills:
> * PHP 5.x (OOP)
> * MySQL
> * Linux (Debian)
> * Bash (shell/ssh etc)
> 
> Desired (non-essential) skills:
> * MongoDB
> * Redhat
> * Percona
> * Memcache
> * Redis
> * Python
> 
> Desired (non-essential) experience:
> * CodeIgniter (PHP)
> * TubeX (PHP)
> * Django (Python)
> * JIRA (Atlassian)
> * Basecamp
> * Zendesk
> * Livechat
> 
> MINIMUM CRITERIA:
> * MUST be able to work on either EST or GMT+0 timezone
> * MUST be able to work 30+ hours a week.
> * MUST be comfortable working on 18+ sites.
> * MUST be fluent in written & spoken English
> 
> The position is full time, offering around $2000/month
> (roughly £1200/month) for the right candidate - price/hours
> are negotiable.
> 
> This position MUST be filled by 15th April 2012.
> 
> When applying, please also include a cover note explaining why
> you feel you would be suitable for this role.
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> 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.



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.
> 
> 
> After reviewing the video, I found that the sound quality was very
> poor, the slides weren't very well structured, and some of the
> information is now out of date (at the time it was 40mil rows, now
> we're dealing with 700+mil rows).
> 
> 
> Therefore, I'm considering doing another live webcast (except this
> time it'll be recorded+posted the next day, the stream will be
> available in 1080p, it'll be far better structured, and will only last
> 50 minutes).
> 
> 
> The topics I'd like to cover are:
> 
> 
> * Bulk data processing where bulk_insert() is still not viable (we
> went from 30 rows/sec to 8000 rows/sec on bulk data processing, whilst
> still using the ORM - no raw sql here!!)
> * Applying faux child/parent relationship when standard ORM is too
> expensive (allows for ORM approach without the cost)
> * Applying faux ORM read-only structure to legacy applications (allows
> ORM usage on schemas that weren't properly designed, and cannot be
> changed - for example, vendor software with no source code).
> * New Relic is beautiful, but expensive. Hear more about our plans to
> make an open source version.
> * Appropriate use cases for IAAS vs colo with SSDs.
> * Percona is amazing, some of the tips/tricks we've learned over.
> 
> 
> If you'd like to see this happen, please leave a reply in the thread -
> if enough people want this, then we'll do public vote for the
> scheduled date.
> 
> 
> Cheers
> 
> 
> Cal
> 
> 
> -- 
> 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.



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 Signature is double the size of your email... 
This is really hard for us to read!

good luck
ionic

On Mon, 2012-07-02 at 07:53 -0500, Jonathan Hayward wrote:

> I am trying to deploy a "Hello, world!" Satchmo store and have had 
> difficulties under Apache with mod_wsgi, Gunicorn (fails immediately on 
> attempted start), and mod_fcgi (I can start the daemon on 127.0.0.1 port 
> 1234, but my attempt to get live web interaction didn't pan out. 
> 
> Part of my problem is that I haven't found mod_fcgi examples. Could I have an 
> example of a .fcgi file that says to connect to this port on this IP, with 
> indicators of any additional information needed (like the project path or the 
> deploy subdirectory.)
> 
>  Jonathan Hayward, Author, Django JavaScript Integration: AJAX and jQuery
>  Toastmaster and Published Author (Excellent Written and Oral Communicator)
>  Ajax, CGI, CMS, CSS, Django, HTML, IA, JSON, JavaScript, LAMP, Linux, Perl, 
> PHP, Python, SQL, UI, Unix, Usability, UX, XHTML, XML
>  With a good interest in the human side of computing and making software and 
> websites a joy to use
> 

-- 
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: 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, I know you do
not investigate in alternative search terms...
This things I know, because you investigate a lot to tell us.

But I have no clue what you are going to achieve.
You do not ask specific questions.
I have no clue what servers you try to run. Apache, NGINX, Caudium,
Goron, Zope...

I did not tell you that this link will solve all your problems, it only
should help you to start going.

Jonathan my friend, this is not an easy task, you will need to
investigate more time in search engines and reading than in your
signature.
Sorry, but this are the hard facts.

Again good luck
io


On Mon, 2012-07-02 at 18:30 -0500, Jonathan Hayward wrote:

> Ajax, CGI, CMS, CSS, Django, HTML, IA, JSON, JavaScript, LAMP, Linux,
> Perl, PHP, Python, SQL, UI, Unix, Usability, UX, XHTML, XML

-- 
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: Difficulties deploying Satchmo store

2012-07-03 Thread ionic drive
and is there any good reason why you go for django version 1.1?

or do you only not bother about framework versions?



On Mon, 2012-07-02 at 18:30 -0500, Jonathan Hayward wrote:

> Forgive me; I had already used search engine. The top (albeit 1.1)
> entry for "django wsgi tutorial", which did not reference later
> versions,
> was https://docs.djangoproject.com/en/1.1/howto/deployment/modwsgi/
> 
> 
> 
> My httpd.conf served up nothing but server errors (for this or any
> other site) when I had, uncommented,
> 
> 
> #
> #ServerName steampunk.stornge.com
> #ServerAdmin cjshayw...@pobox.com
> 
> 
> #
> #
> #Order deny,allow
> #allow from all
> #
> #
> 
> 
> #
> #WSGIPythonPath /home/jonathan/store/
> #WSGIScriptAlias / /home/jonathan/store/wsgi.py
> 
> 
> My wsgi.py file, with the last two lines changed, is:
> 
> 
> import os
> import sys
> 
> 
> os.environ.setdefault("DJANGO_SETTINGS_MODULE",
> "store.settings")
> 
> 
> # This application object is used by the development server
> # as well as any WSGI server configured to use this file.
> sys.path.append('/home/jonathan/store')
> 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?
> 
> 
> 
> On Mon, Jul 2, 2012 at 11:39 AM, ionic drive 
> wrote:
> 
> 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 Signature is double the size of your
> email... 
> This is really hard for us to read!
> 
> good luck
> ionic
> 
> 
> 
> On Mon, 2012-07-02 at 07:53 -0500, Jonathan Hayward wrote: 
> 
> > I am trying to deploy a "Hello, world!" Satchmo store and have had 
> difficulties under Apache with mod_wsgi, Gunicorn (fails immediately on 
> attempted start), and mod_fcgi (I can start the daemon on 127.0.0.1 port 
> 1234, but my attempt to get live web interaction didn't pan out. 
> > 
> > Part of my problem is that I haven't found mod_fcgi examples. Could 
> I have an example of a .fcgi file that says to connect to this port on this 
> IP, with indicators of any additional information needed (like the project 
> path or the deploy subdirectory.)
> > 
> >  Jonathan Hayward, Author, Django JavaScript Integration: AJAX and 
> jQuery
> >  Toastmaster and Published Author (Excellent Written and Oral 
> Communicator)
> >  Ajax, CGI, CMS, CSS, Django, HTML, IA, JSON, JavaScript, LAMP, 
> Linux, Perl, PHP, Python, SQL, UI, Unix, Usability, UX, XHTML, XML
> >  With a good interest in the human side of computing and making 
> software and websites a joy to use
> > 

-- 
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.



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-Information:
---
Host: Ubuntu Server 10_04
Django: Django-1.2.4
CACHE-backend: memcached

Solution:

as suggested by
http://evanculver.com/2010/03/30/simple-fix-for-python-memcached-memcachedkeylengtherror-and-memcachedkeycharactererror/

I took his wrapper and adjusted it for django-1.2.4: (adjustment just
added default=None as it is commented in the provided code)

MyMemchacedWrapper.py
-
from django.core.cache.backends import memcached
from django.utils.encoding import smart_str

"""
Simple Django cache backend overrides for dealing with python-memcached
differences between cmemcache.

For Django 1.2. All methods except `set_many` and `delete_many` will
work for Django 1.1

Use by pointing to it in settings, for example:

CACHE_BACKEND = myproject.contrib.thisfile://127.0.0.1:11211
"""
class CacheClass(memcached.CacheClass):
"Filter key through `_smart_key` before sending to backend for all
cases"
def __init__(self, server, params):
super(CacheClass,self).__init__(server, params)

def add(self, key, value, timeout=0):
return super(CacheClass, self).add(self._smart_key(key), value,
timeout)

def get(self, key, default=None):
return super(CacheClass, self).get(self._smart_key(key),
default=None) #here default=None had to be added for django1.2.4

def set(self, key, value, timeout=0):
super(CacheClass, self).set(self._smart_key(key), value,
timeout)

def delete(self, key):
super(CacheClass, self).delete(self._smart_key(key))

def _smart_key(self, key):
"Truncate all keys to 250 or less and remove control characters"
return smart_str(''.join([c for c in key
if ord(c) > 32 and ord(c) !=
127]))[:250]

in local_settings.py we point to:

CACHE_BACKEND = "store.cache.MyMemcachedWrapper.py://127.0.0.1:11211/"

Now everything works just fine.

please comment my solution. I feel uncomfortable with it, and want to
know how you solved the problem? There is not really a lot to find about
concerning these issues. I think you guys do use a totally other
solution, because I could hardly find anything about that issues.
(searchtime two days.)

How do you cache? and why is there not a lot more talk about the errors
on the web? Am I missing something?

Thanks for your replies in advance!
ionic


-- 
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: memcached - Errors and Solution - please provide comments!

2011-11-10 Thread ionic drive
Yes Malcolm,

thanks for the great and smart answer!
You are totally right, this was the reason why I was asking for, I
already knew their could be coming up new troubles.

two more questions:
--
We don't have troubles with > 255 keys. as we do not have such long
keys.
But we have that issue:
1) MemcachedKeyCharacterError: Control characters not allowed

can't we just turn off caching for these two issues?

I think the MD5 solution would work to fix both of them.
Why am I the only one who seems to be faced with such issues?
I thought millions out there do use memcached as their backend...?
Wouldn't be MD5 a great solution to all of us? The guys with small
sites, don't have issues with scaling, and the guys with big sites are
in the need of a stable memcached backend.

Thanks for your help
ionic


On Thu, 2011-11-10 at 10:02 +, Malcolm Box 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
> 
> 
> 
> The obvious solution is not to generate keys with these properties.
>  
>def _smart_key(self, key):
>"Truncate all keys to 250 or less and remove control
> characters"
>return smart_str(''.join([c for c in key
>if ord(c) > 32 and ord(c) !
> =
> 127]))[:250]
> 
> 
> 
> That looks like a very dangerous, and not very smart key function.
> Since you're truncating the key, two keys that should be different
> could end up pointing to the same place. That will result in very
> difficult to track down bugs.
> 
> 
> If you really have values that are longer than 255 characters, I'd
> suggest running it through a hash function (e.g. MD5) that has a low
> probability of collision, and then use that.
> 
> 
> E.g. if the key was "poll:question:choice:a very long choice here that
> takes up 255 characters" I'd turn it into 
> "poll:question:choice:"
> 
> 
> 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 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.



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 totally right, this was the reason why I was asking for, I
> > already knew their could be coming up new troubles.
> >
> > two more questions:
> > --
> > We don't have troubles with > 255 keys. as we do not have such long
> > keys.
> > But we have that issue:
> > 1) MemcachedKeyCharacterError: Control characters not allowed
> >
> > can't we just turn off caching for these two issues?
> >
> > I think the MD5 solution would work to fix both of them.
> > Why am I the only one who seems to be faced with such issues?
> > I thought millions out there do use memcached as their backend...?
> > Wouldn't be MD5 a great solution to all of us? The guys with small
> > sites, don't have issues with scaling, and the guys with big sites are
> > in the need of a stable memcached backend.
> >
> 
> Because md5 has a key size of 2^128 and memcached has a key size of
> (roughly) 128^250.
> 
> Just stop generating keys with invalid characters in - ascii, no whitespace.
> 
> Cheers
> 
> Tom
> 


-- 
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: [] 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 problem was in my code. The keys where sometimes too long and '\n'
new line characters got inserted. But control characters are not
allowed.

Don't kill me know... I was thinking come one, maybe the guy who was
writing this bit of code had similar troubles and already corrected it.
I know this should have been the first approach but for some reason I
had the feeling that he did not see this sort of troubles.

### Code 
But he saw it and fixed it already:
---
key = 'base_text' + sha1(url).hexdigest()
### /Code 

so now there are no more troubles with long urls as keys.
Sorry for the noise!

Maybe some noobs (and me!) learned something!

Best wishes
ionic


On Sun, 2011-11-13 at 03:35 +, Cal Leeming [Simplicity Media Ltd]
wrote:
> +1 on hashing the key.
> 
> 
> Just my two cents worth but, the way our company does it as standard
> is something like this:
> 
> 
> import hashlib
> def generate_key(*args, **kwargs):
> return hashlib.sha224(pickle.dumps([args, kwargs])).hexdigest()
> 
> 
> Then you can do stuff like:
> lol = YourModel.objects.all()[0]
> generate_key('YourModel', lol.id, 'other stuff')
> 
> 
> We actually have a replacement caching class which does all this stuff
> behind the scenes that uses this approach, been doing this for almost
> a year with not a single problem so far (although ours still uses md5,
> rather than sha224)
> 
> 
> Cal
> 
> 
> 
> On Thu, Nov 10, 2011 at 12:07 PM, Henrik Genssen
>  wrote:
> Hi inonc,
> 
> >Why am I the only one who seems to be faced with such issues?
> >I thought millions out there do use memcached as their
> backend...?
> >Wouldn't be MD5 a great solution to all of us? The guys with
> small
> >sites, don't have issues with scaling, and the guys with big
> sites are
> >in the need of a stable memcached backend.
> >
> >Thanks for your help
> >ionic
> 
> 
> this is a question I stopped asking my self.
> We inherited the cache-module and overwrote simply the
> problematic function, where the key are generated (also to
> support caching POST requests).
> I was tiered, discussing the need for this (e.g. for XMLRPC
> requests - as 2 + 2 might always be 4 :-)
> 
> regards
> 
> Henrik
> 
> 
> --
> 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.


-- 
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: 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 (and
> would be happy to release this under FreeBSD license).
> 


-- 
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: 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, Ivo Brodien  wrote:
> and keep in mind, that you don’t have to reinvent the wheel.
> There are open source solutions for shops:
> 
> 
> Like: http://www.getlfs.com/released-06-beta-1
> 
> 
> cheers
> 
> On Dec 16, 2011, at 11:17 , Joey Espinosa wrote:
> 
> > Cata,
> > 
> > 
> > Yes, Django is exactly suited for this scenario. The
> > structure of Django allows you to create scalable, flexible
> > sites with the freedom to expand the database as needed
> > without having to worry about messing with the code so much
> > in order to do so.
> > 
> > 
> > That being said, I'd HIGHLY recommend you get familiar with
> > JS and HTML. While Django can provide you the backend
> > foundation for your sites, you need HTML (and likely JS as
> > well) on the front end to present your backend data. In
> > fact, I'd say that's (HTML) extremely important, because
> > it's the part that's going to interact directly with your
> > customer base. It can easily make or break your site,
> > regardless of how good your backend code is.
> > 
> > 
> > Hope this helped.
> > --
> > Joey "JoeLinux" Espinosa
> > 
> > 
> > 
> > 
> > 
> > 
> > On Fri, Dec 16, 2011 at 2:06 AM, Cata
> >  wrote:
> > Hello everyone,
> > 
> > I am basically working on creating a website on the
> > lines of Amazon/
> > Ebay  wherein user can browse/buy/sell items. I
> > intend to make a basic
> > website first then build on top of it.
> > 
> > Till now i have been mostly programming in C/C++ &
> > used Python as an
> > automation tool . I am not familiar with any of the
> > Web programming
> > languages such as MySQL , JavaScript, HTML ,
> > honestly i do not even
> > know what these are.
> > 
> > My question is will Django be suitable for the above
> > tasks ? I have
> > just installed the framework & going through the
> > tutorials & so far
> > it's been wonderful experience
> > 
> > Please pitch in
> > 
> > Thanks
> > Cata
> > 
> > --
> > 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.
> 
> 
> -- 
> 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.


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, se

Re: Creating websites like Amazon/Ebay using Django

2011-12-16 Thread ionic drive
Cata

as also Denis told you I just wanted to make sure, that you know
this will be some hard years for you.

I wish you good luck on your product.
Maybe you first go with satchmo learn and improve 
than you can start off with configuring things to your needs.

Would be great to welcome you at 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.
> 
> 
> 
> 
> Thanks
> Cata 
> 
> On Fri, Dec 16, 2011 at 3:49 PM, Denis Darii 
> wrote:
> You can consider to use django-lfs: http://www.getlfs.com/
> 
> or satchmo: http://www.satchmoproject.com/
> 
> but without basic knowledge of django, it's going to be very
> hard for you.
> 
> On Fri, Dec 16, 2011 at 8:06 AM, Cata 
> wrote:
> 
> 
> Hello everyone,
> 
> I am basically working on creating a website on the
> lines of Amazon/
> Ebay  wherein user can browse/buy/sell items. I intend
> to make a basic
> website first then build on top of it.
> 
> Till now i have been mostly programming in C/C++ &
> used Python as an
> automation tool . I am not familiar with any of the
> Web programming
> languages such as MySQL , JavaScript, HTML , honestly
> i do not even
> know what these are.
> 
> My question is will Django be suitable for the above
> tasks ? I have
> just installed the framework & going through the
> tutorials & so far
> it's been wonderful experience
> 
> Please pitch in
> 
> Thanks
> Cata
> 
> --
> 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.
> 
> 
> 
> 
> -- 
> This e-mail and any file transmitted with it is intended only
> for the person or entity to which is addressed and may contain
> information that is privileged, confidential or otherwise
> protected from disclosure. Copying, dissemination or use of
> this e-mail or the information herein by anyone other than the
> intended recipient is prohibited. If you are not the intended
> recipient, please notify the sender immediately by return
> e-mail, delete this communication and destroy all copies.
> 
> 
> -- 
> 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.


-- 
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: django-localeurl and SEO

2012-01-20 Thread ionic drive
thank you very much, I found out, that this issue is already addressed.
its possible to make multi_locale sitemaps with django-localeurl.

I did not see that this is possible in the first glance.
sorry!

link to tutorial:
http://packages.python.org/django-localeurl/usage.html#sitemaps

greetings
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 friends,
> > 
> > I have installed "django-localeurl" successfully. After some
> > redirecting troubles... don't worry ;-)
> > it works fine, but...
> > 
> > The Problem:
> > -
> > How is django-localeurl performe concerning SEO?
> > The "problem" is, if the browsers main language is "en" the
> > sitemap.xml links are created with
> > http://example.com/EN/websitename/foo.html
> >  if the browsers main language is "de"
> > the sitemap.xml links are created with
> > http://example.com/DE/websitename/foo.html
> >  if the browsers main language is "it"
> > the sitemap.xml links are created with
> > http://example.com/IT/websitename/foo.html
> >  if the browsers main language is "fr"
> > the sitemap.xml links are created with
> > http://example.com/FR/websitename/foo.html
> > 
> > Question:
> > 
> > So it again depends on the google-bot settings (language settings)
> > which urls are sent to google webindex.
> > Does google know, it should search with different bot settings, to
> > realize that there are multiple languages?
> > 
> > If NOT, than the solution without django-localeurl as we had it
> > before was far better.
> > 
> > Awaiting your professional SEO answers.
> > Thank you very much for helping me on that topic!
> > ionic -- 
> > 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.

-- 
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: 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 -0700, Siddharth Swaminathan wrote:
> Hi, 
> 
> 
> I have a django project where I have a form to upload files. The
> problem is that I'm not able to upload files larger than 192Kb.
> Is there some django setting that can be used to change this
> behaviour?
> 
> 
> Also, I've eliminated the possibility of apache configuration
> problems, coz a parallel drupal site on the same server is able to
> accept files larger than even 1Mb.
> 
> 
> Any help would be appreciated.
> 
> 
> Thanks in advance,
> Siddharth Swaminathan
> 
> -- 
> 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/-/VjJXMVhZeWE2WHNK.
> 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.



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-read the tutorial
you are working on.

Good luck!
Ionic
Electronics Platform
http://develissimo.com


On Fri, 2011-07-15 at 12:06 -0700, Rick Beacham wrote:
> I'm having alot of trouble with setting up django with fastCGI. I was
> able to use the default test server made with django no problem.  But
> I'm having trouble setting it up with httpd and fastCGI in scientific
> linux(centos)..   Here is the error message after running this
> command  ./manage.py runfcgi daemonize=false host=127.0.0.1
> port=8000  .
> 
> 
> 
> 
> 
> Traceback (most recent call last):
>   File "./manage.py", line 14, in 
> execute_manager(settings)
>   File "/opt/python2.7/lib/python2.7/site-packages/django/core/
> management/__init__.py", line 438, in execute_manager
> utility.execute()
>   File "/opt/python2.7/lib/python2.7/site-packages/django/core/
> management/__init__.py", line 379, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "/opt/python2.7/lib/python2.7/site-packages/django/core/
> management/base.py", line 191, in run_from_argv
> self.execute(*args, **options.__dict__)
>   File "/opt/python2.7/lib/python2.7/site-packages/django/core/
> management/base.py", line 220, in execute
> output = self.handle(*args, **options)
>   File "/opt/python2.7/lib/python2.7/site-packages/django/core/
> management/commands/runfcgi.py", line 16, in handle
> runfastcgi(args)
>   File "/opt/python2.7/lib/python2.7/site-packages/django/core/servers/
> fastcgi.py", line 180, in runfastcgi
> WSGIServer(WSGIHandler(), **wsgi_opts).run()
>   File "build/bdist.linux-x86_64/egg/flup/server/fcgi_fork.py", line
> 131, in run
>   File "build/bdist.linux-x86_64/egg/flup/server/fcgi_base.py", line
> 1018, in _setupSocket
>   File "/opt/python2.7/lib/python2.7/socket.py", line 222, in meth
> return getattr(self._sock,name)(*args)
> socket.error: [Errno 98] Address already in use
> 


-- 
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.