Re: Development server won't work from a shared web host

2012-09-04 Thread Marcin Tustin
You don't have a computer that you can develop on at all? How are you
writing this email? Developing over ssh is going to be a huge pain.

Now, you *maybe* can use the runserver command - if you do add the --help
switch it will tell you how to run it to bind to a particular interface and
port. It maybe that you can bind it to a port on the localhost interface
(and then tunnel that over ssh), or you may be able to have your host
allocate you specific ports which you can use to run any kind of web server
you like.

While runserver shouldn't be used for production, I have used it to
diagnose specific problems in the production environment, which inevitably
will differ from development when using a shared host. This is, of course,
fairly insecure, and could even be illegal depending on your data
protection obligations.

On Tue, Sep 4, 2012 at 12:03 PM, ecs1749 <ecs1...@gmail.com> wrote:

> I don't have a local machine I can use to learn Django - just a personal
> acct from a shared host.  The question I kept asking was:  How do I get
> into admin and follow the tutorial without the development server because
> the tutorial doesn't tell me that.
>
> Regards,
>
>
> On Monday, September 3, 2012 11:13:53 PM UTC-7, Daniel Roseman wrote:
>>
>> On Tuesday, 4 September 2012 03:32:08 UTC+1, ecs1749 wrote:
>>>
>>> Thanks for the reply.  Yes, I saw that message.  I am a bit lost where
>>> to go next if I completely ignore that tutorial regarding doing admin from
>>> the development server (which I don't have).  Do I dive into tutorial   #3
>>> and hope that it will pick up the admin stuff later when it gets to talk
>>> about wsgi?  Or is there a "here's what you do if you don't have a
>>> development server" tutorial somewhere?
>>>
>>>
>> You should not be doing the tutorial - or any development - on your
>> server. Install Django locally and do it there, then deploy when you are
>> ready and not before.
>>
>> However, you are wrong to assume that the admin console has anything to
>> do with the development server - it works just fine with any server.
>> --
>> DR.
>>
>  --
> 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/-/UhMFGZB6YS0J.
>
> 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.
>



-- 
Marcin Tustin
Tel: +44 (0) 7773 787 105 (UK)
   +1  917 553 3974 (US)

-- 
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: Choosing a JS framework to go together with Django

2012-09-04 Thread Marcin Tustin
Why?

On Tue, Sep 4, 2012 at 10:23 AM, Alec Taylor <alec.tayl...@gmail.com> wrote:

> AngularJS?
>
>
> On Tue, Sep 4, 2012 at 11:39 PM, dotnetCarpenter <jon.ronnenb...@gmail.com
> > wrote:
>
>> Hi all.
>>
>> I'm new here and just took over a Django project for the first time. I'm
>> still getting to grip with Django but as a front end dev for the past 5
>> years, I'm also looking for a client-side library/framework to go together
>> with my project.
>> My requirements for a JS framework is that it:
>>
>>1. is unobtrusive (Django rendered HTML will be shown to scraper bots
>>like google)
>>2. provides some sort of structure (MVC, MVP, MVVM ect.)
>>3. embraces standards
>>4. doesn't conflict with Django templates or does so intentionally
>>5. ideally uses the same template language as Django
>>
>> In the ideal world a request/response scenario would look like this:
>>
>>1. A client make a (HTTP) request to the (django powered) web site
>>with (HTTP) Accept header text/html
>>2. Django response in the usual way by rendering the assign View
>>(django template)
>>3. The view figure out if JS is supported (implemented in JS). If no,
>>this scenario stays in loop 1-3. If yes, then 4.
>>4. The client (usually a browser) wire up the client-side app
>>structure, hook in to URI links, add transitions between views,
>>data-bindings ect.
>>5. Subsequent request are now handle by the JS framework, either user
>>initiated (e.g. clicking a link) or app initiated (e.g. pulling extra
>>data), that will modify the request header to Accept header
>>application/json or application/django-template.
>>6. If django receive a request with an application/django-template
>>header it will serve the view as plain text. E.g. Content-type: 
>> text/plain.
>>On the other hand if django receive a request with application/json, it
>>will send the object model defined in the view as JSON.
>>7. The client-side JS framework will receive a template to render in
>>the first request and the data to render in the template in the second
>>request. A promise object could be used to synchronize the two calls.
>>
>> This way django will work as intended for non JS clients and silently
>> convert to a RIA in clients that supports JS, with minimal double work for
>> the two execution contexts.
>> A big pro in this is the fact that both django and the JS framework share
>> template and data (only has to defined once - in django) - we'll duck type
>> all the way. But does this JS framework exist? Does anyone have any
>> experience with working with django and JS frameworks? Is there any obvious
>> pitfalls in my ideal world scenario in regard to Django? And finally, is it
>> possible to serve templates as plain text with django?
>>
>>
>> Cheers, Jon and thanks in advance
>>
>> PS. I accidentally cross-posted this to the Django Developers group
>> before realizing it was the wrong forum. Sorry about that.
>>
>>  --
>> 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/-/WrIx5DWqCVgJ.
>> 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.
>



-- 
Marcin Tustin
Tel: +44 (0) 7773 787 105 (UK)
   +1  917 553 3974 (US)

-- 
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: Asking for your help: How do you develop apps today and in the future?

2012-08-19 Thread Marcin Tustin
Who's "us"?

On Sat, Aug 18, 2012 at 8:34 PM, Wolfgang Gruener <wgrue...@gmail.com>wrote:

> We recently launched our web app survey to gain more insight in current
> web app and app development trends. We would be excited if you guys could
> take 5 minutes and head over to the form and fill out a fee questions. As
> our thank you, please leave your email address at the end of the survey and
> we will send you a complimentary copy of the resulting whitepaper with the
> results of the survey, which will give you an overview of web application
> development trends happening right now to hopefully assist you in your
> developer efforts. Thank you for your participation! -Wolfgang
>
> You can find the survey here:
>
>
> https://docs.google.com/spreadsheet/viewform?formkey=dFBWTS14cUR1QlNXQVpGbXMyMk50TWc6MQ#gid=0
>
> --
> 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/-/S696afYGN-4J.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: How well does South work in a team?

2012-08-16 Thread Marcin Tustin
For that to happen, models would have to be changed without a migration
being generated, or without it boeing added to source control. Neither is
good practice.
On Aug 16, 2012 7:56 AM, "Benjamin Lei"  wrote:

> I'm just wondering since it seems the migrations created are all prepended
> with an incremental number... so if two developers were to push two
> different migrations, each with the same id, I'm afraid something bad will
> happen.
>
> For example:
> Dev A: creates 001_somedesc
> Dev B: creates 001_someotherdesc
> Dev A: commits 001_somedesc into repo
> Dev B: commits 001_someotherdesc into repo
>
> Is it better to just use the default django "syncdb"?
>
> --
> 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/-/KPdf40hcre0J.
> 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: multiple profile

2012-08-13 Thread Marcin Tustin
You're going to have to be more specific.

On Mon, Aug 13, 2012 at 3:36 PM, Anderson <andersondbor...@gmail.com> wrote:

> What's the best way to work with multiple profile on Django?
>
> --
> Anderson Dias Borges
> Senior Analyst Developer
>
> Tu cumprirás o desejo do meu coração se eu Te buscar...
> I can't see but I'll take my chances
> To hear You call my name
>
> --
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: forms or tastpie api?

2012-08-13 Thread Marcin Tustin
Modelforms are for creating forms that very closely map onto a model class.
The questions of whether to use xmlhttprequest vs form post, or
hand-written views vs tastypie generated are independent.

You can still create a form with the fields you want using django's forms
framework, and use javascript to send the data back, or use javascript to
create your UI, and process the data with a hand-written view.

On Mon, Aug 13, 2012 at 10:04 AM, Tim <jtim.arn...@gmail.com> wrote:

> I have started building an interface for my web app; there are some
> manytomany "through" relationships and fks I want to simplify for users to
> add/update the database. I don't want them to have to think about it; just
> edit the data and let the app logic put all the changes wherever they're
> supposed to be.
>
> After reading about modelforms and now looking at tastypie, I wonder how
> and why one picks one over the other. It seems to me that using tastypie
> and some jquery editable tables will abstract away the work of putting the
> data from the user in all the right places, while doing the logic with
> modelforms means I'll do it myself in the view/save logic.
>
> I'm just learning this part and wonder what others have to say. Is the
> tastypie/api method good for complex relationships and modelforms should be
> used for simpler ones? I guess that you can accomplish the same work with
> either method.
>
> thanks,
> --Tim Arnold
>
> --
> 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/-/WHI1eJWMV2AJ.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: how to let user change the language

2012-08-13 Thread Marcin Tustin
This list is not here to find pages in the documentation for you. The
documentation has a contents page, and search.
On Aug 13, 2012 3:45 AM, "Gelonida N" <gelon...@gmail.com> wrote:

>
> On 08/13/2012 12:54 AM, Marcin Tustin wrote:
>
>> So, what part, exactly is a problem? What have you tried?
>>
>
> Changing settings.LANGUAGE_CODE to another language, but this is obiously
> nto what I am looking for, as this does not allow to change the language on
> a user by use base.
>
> If anybody showed my how to select the language on a requests basis, then
> the problem should basically be solved and I should be able to solv ethe
> rest by myself.
>
>
> It may be, that there is an obvious mentioning in the documentation.
> However I fail to see it. Thus my question.
>
>
> What I'd like to achieve is to be able to have the language settings on a
> user by user basis.
>
> I assume, that this can be achieved via some middleware and some state
> variable, that I had to link to a user.
> I did not find the related documention and wanted to know if anybody can
> point me to the right doc (or section of the doc)
>
> The link you refer to is exactly one page and somehow I miss to see any
> outgoing links to more specialized topics.
> I know, that I rad already more docs about I18n for django, but don't
> remember the chapter / link name.
>
> In fact the link doesn't even mention, that changing
> settings.LANGUAGE_CODE allows to change the language site wise.
> So there must be some other doc explaining more.
>
>
>
>> On Sun, Aug 12, 2012 at 6:52 PM, Gelonida N <gelon...@gmail.com
>> <mailto:gelon...@gmail.com>> wrote:
>>
>> On 08/12/2012 08:46 PM, Marcin Tustin wrote:
>>
>> This is linked from the Django front page:
>> https://docs.djangoproject.__**com/en/1.4/topics/i18n/
>> 
>> <https://docs.djangoproject.**com/en/1.4/topics/i18n/<https://docs.djangoproject.com/en/1.4/topics/i18n/>
>> >
>>
>> Come back with specific questions when you get stuck.
>>
>>
>>
>> Thanks for your answer.
>>
>> I created already all the l18n messages and I can switch the
>> language site wise  by changing the language in settings.py
>>
>> However Now I'd like to change them via user preferences. (not
>> cookies)
>> (So if one user changes the language on one m,achine it should be
>> changed on any other machine if he logs in.
>>
>> I'd prefer not to set the language as suggested by the browser, but
>> let the user the choice even if his useragent suggests another
>> prefered language.
>>
>>
>> There seems to be a url based approach and a cookies based approach
>> I wonder what would be best for my scenario.
>> (I am in full control of the web server and can add redirects /
>> rewrite rules, etc. if this helps)
>>
>>
>> This might be explained somewhere in more details in the Django
>> docss however I did not find the related page.
>>
>> The doc mentions:
>> "It uses these hooks to localize Web apps for particular users
>> according to their preferences."
>>
>> but I did not find the how
>>
>>
>>
>> On Sun, Aug 12, 2012 at 1:10 PM, Gelonida N <gelon...@gmail.com
>> <mailto:gelon...@gmail.com>
>> <mailto:gelon...@gmail.com <mailto:gelon...@gmail.com>>> wrote:
>>
>>
>>  I'd like to have a web site, where the can switch the
>> language
>>  The first time the user connects the language would be the
>> prefered
>>  language as sugegsted by the news agent,
>>  then the user could select the prefered lanngauge in some
>> user
>>  preference settings.
>>
>>
>>
>>  What would be the standard way to do this in Django?
>>
>>  Thanks in advance for comments,  examples, snippets, links,
>>
>>  --
>>  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 <django-users@googlegroups.com>>
>>  
>> <mailto:django-users@__googleg**roups.com<http://googlegroups.com>
>> 
>> <mailto:django-users@**googlegroups.co

Re: calling perl script from HTML on submit button

2012-08-13 Thread Marcin Tustin
You do realise that django is a python framework? If you want to write your
app in Perl, use a Perl framework.
On Aug 13, 2012 5:34 AM, "Pervez Mulla"  wrote:
>
> Hi,
>
> I have sign-up page, for that I have perl script to store the
user details in DB .The DB code that has is auto-generated, i.e. we can
just specify objects (User Details)and then it creates read and write
functions for the DB.
>
> Next step is to also auto-generate some HTML forms based on these
objects. That way I don't need to write new forms every-time, the code
will auto generate HTML and i want to embbeded it in to Django-Framwork.
>
> So,
>
> How can execute perl scripts in Django framework,so that I
can accomplish this function.
>
> Thank You
>  Pervez
>
> --
> 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: how to let user change the language

2012-08-12 Thread Marcin Tustin
So, what part, exactly is a problem? What have you tried?

On Sun, Aug 12, 2012 at 6:52 PM, Gelonida N <gelon...@gmail.com> wrote:

> On 08/12/2012 08:46 PM, Marcin Tustin wrote:
>
>> This is linked from the Django front page:
>> https://docs.djangoproject.**com/en/1.4/topics/i18n/<https://docs.djangoproject.com/en/1.4/topics/i18n/>
>>
>> Come back with specific questions when you get stuck.
>>
>
>
> Thanks for your answer.
>
> I created already all the l18n messages and I can switch the language site
> wise  by changing the language in settings.py
>
> However Now I'd like to change them via user preferences. (not cookies)
> (So if one user changes the language on one m,achine it should be changed
> on any other machine if he logs in.
>
> I'd prefer not to set the language as suggested by the browser, but let
> the user the choice even if his useragent suggests another prefered
> language.
>
>
> There seems to be a url based approach and a cookies based approach I
> wonder what would be best for my scenario.
> (I am in full control of the web server and can add redirects / rewrite
> rules, etc. if this helps)
>
>
> This might be explained somewhere in more details in the Django docss
> however I did not find the related page.
>
> The doc mentions:
> "It uses these hooks to localize Web apps for particular users according
> to their preferences."
>
> but I did not find the how
>
>
>
>> On Sun, Aug 12, 2012 at 1:10 PM, Gelonida N <gelon...@gmail.com
>> <mailto:gelon...@gmail.com>> wrote:
>>
>>
>> I'd like to have a web site, where the can switch the language
>> The first time the user connects the language would be the prefered
>> language as sugegsted by the news agent,
>> then the user could select the prefered lanngauge in some user
>> preference settings.
>>
>>
>>
>> What would be the standard way to do this in Django?
>>
>> Thanks in advance for comments,  examples, snippets, links,
>>
>> --
>> 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<django-users@googlegroups.com>
>> >.
>>
>> To unsubscribe from this group, send email to
>> django-users+unsubscribe@__goo**glegroups.com<http://googlegroups.com>
>> 
>> <mailto:django-users%**2bunsubscr...@googlegroups.com<django-users%252bunsubscr...@googlegroups.com>
>> **>.
>>
>> For more options, visit this group at
>> 
>> http://groups.google.com/__**group/django-users?hl=en<http://groups.google.com/__group/django-users?hl=en>
>> 
>> <http://groups.google.com/**group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>> >.
>>
>>
>>
>>
>>
>> --
>> Marcin Tustin
>> Tel: 07773 787 105
>>
>> --
>> 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+unsubscribe@**googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/**group/django-users?hl=en<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+unsubscribe@**
> googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
> .
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: how to let user change the language

2012-08-12 Thread Marcin Tustin
This is linked from the Django front page:
https://docs.djangoproject.com/en/1.4/topics/i18n/

Come back with specific questions when you get stuck.

On Sun, Aug 12, 2012 at 1:10 PM, Gelonida N <gelon...@gmail.com> wrote:

>
> I'd like to have a web site, where the can switch the language
> The first time the user connects the language would be the prefered
> language as sugegsted by the news agent,
> then the user could select the prefered lanngauge in some user preference
> settings.
>
>
>
> What would be the standard way to do this in Django?
>
> Thanks in advance for comments,  examples, snippets, links,
>
> --
> 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+unsubscribe@**
> googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
> .
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Marcin Tustin
I thought the point of a tutorial was that if you followed it blindly, and
to the letter, it will work, and then you can pull it apart afterwards.

On Sun, Aug 12, 2012 at 2:10 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> You can't blindly follow a deployment tutorial and expect to not have to
> get your hands dirty - especially when it's not even an official tutorial ;)
>
> First off - you need to find the error logs for your application and/or
> web server, and/or determine where the stack is breaking
>
> Cal
>
> On Sun, Aug 12, 2012 at 6:56 PM, surya <kasturisu...@gmail.com> wrote:
>
>> Hi Cal,
>>
>> Actually, I have followed this 
>> tutorial<https://github.com/ehazlett/openshift-diy-py27-django>for deploying 
>> a basic Django app using Python 2.7 on Open Shift.
>>
>> So, when I pushed the repo, the website showed me..
>>
>> Service Temporarily Unavailable
>>
>> The server is temporarily unable to service your request due to
>> maintenance downtime or capacity problems. Please try again later.
>> --
>> Apache/2.2.15 (Red Hat) Server at appName-userID.rhcloud.com Port 80
>>
>> On Sunday, August 12, 2012 10:43:46 PM UTC+5:30, Cal Leeming [Simplicity
>> Media Ltd] wrote:
>>
>>> Surya,
>>>
>>> Your original question does not really explain what problem you are
>>> having.
>>>
>>> From what I can tell, you have read tutorials on the web that explain
>>> how to set up Django on OpenShift, but you have not explained what is wrong
>>> with them, nor what specific problem you are having.
>>>
>>> You'll need to explain in more detail the exact problem you are having
>>> before anyone will be able to help you with this.
>>>
>>> Cal
>>>
>>> On Sun, Aug 12, 2012 at 4:48 PM, Surya Kasturi <kastur...@gmail.com>wrote:
>>>
>>>> Haven't got any answer! So, I thought someone from Django users would
>>>> be using it and might help.
>>>>
>>>>
>>>> On Sun, Aug 12, 2012 at 7:33 PM, Mario Lacunza <mlac...@gmail.com>wrote:
>>>>
>>>>> Uhmm... Is not better ask the same to openshift support?
>>>>>
>>>>> Mario Lacunza
>>>>> Enviado desde mi Motorola Atrix2
>>>>> El ago 12, 2012 6:55 a.m., "surya" <kastur...@gmail.com> escribió:
>>>>>
>>>>>  I am really fed up with tutorials on web telling how to configure
>>>>>> Django & Python 2.7 on OpenShift <http://openshift.com> DIY.
>>>>>>
>>>>>> So, can write a detailed step-by-step procedure on *how to setup
>>>>>> Django 1.4 with Python 2.7 on OpenShift using VirtualEnv*??
>>>>>>
>>>>>> Thanks a lot!!
>>>>>>
>>>>>> --
>>>>>> 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/-/gM7OFF1Bx_**kJ<https://groups.google.com/d/msg/django-users/-/gM7OFF1Bx_kJ>
>>>>>> .
>>>>>> To post to this group, send email to django...@googlegroups.com.
>>>>>> To unsubscribe from this group, send email to django-users...@**
>>>>>> googlegroups.com.
>>>>>>
>>>>>> For more options, visit this group at http://groups.google.com/**
>>>>>> group/django-users?hl=en<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...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to django-users...@**
>>>>> googlegroups.com.
>>>>>
>>>>> For more options, visit this group at http://groups.google.com/**
>>>>> group/django-users?hl=en<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...@

Re: Django work required

2012-08-06 Thread Marcin Tustin
What is your budget? Are you looking to pay hourly or get a fixed quote?
How much existing code is there? Briefly, what is the nature of the
project? What other software (e.g databases, job queues) are used?

On Monday, August 6, 2012, MeAgain wrote:

> Hello All,
> I need some help finishing a Django site that has lots of code built
> already, which needs plugging together and the final teaks to deliver a
> working site.
> I have all the designs but need to find someone who can code it all
> together and start work on this soon.
> Any ideas about where I might look for help would be most appreciated.
> Thanks
> Mike
>
>  --
> 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/-/2FTOvTUveygJ.
> To post to this group, send email to 
> django-users@googlegroups.com<javascript:_e({}, 'cvml', 
> 'django-users@googlegroups.com');>
> .
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com <javascript:_e({}, 'cvml',
> 'django-users%2bunsubscr...@googlegroups.com');>.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Thoughts on web2py?

2012-08-05 Thread Marcin Tustin
Implement a basic version of your site in django.

Django has a fair bit of structure, to allow you to focus on the business
logic, rather than the plumbing. Be prepared to get used to not having to
manage the nitty gritty of a lot of things.

On Sun, Aug 5, 2012 at 11:01 AM, Alec Taylor <alec.tayl...@gmail.com> wrote:

> I've been playing around with web2py the past few months, even
> open-sourced an event-site (aka meetup.com) which I wrote with it.
>
> Now I might be starting a job where all I'll be doing is
> Django—probably GeoDjango + Pinax—and was wondering a few things:
>
> 1. Apart from following the tutorial, what else should I do to learn
> Django?
> 2. What are your thoughts on web2py?
>
> I will listen to reasons, e.g.: if you think I shouldn't look back to
> web2py for other projects and stick with Django for all my future
> projects.
>
> Thanks for all suggestions,
>
> Alec Taylor
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Major Trouble Understanding Sessions Documentation

2012-08-02 Thread Marcin Tustin
This is how you store data:
 request.session['member_id'] = m.id
This is how you read it:
 request.session['member_id']

Your view code looks fine, in respect of how you use sessions. I can't see
that you have explained what problem you are having: what is going wrong?

Finally, you do have to do some minimal configuration to enable sessions.
Are you sure you have done that?

On Thu, Aug 2, 2012 at 10:42 AM, Gregory Thompson Jr. <
spockthompso...@gmail.com> wrote:

> Then how do I use the session to pass data between views?  What's wrong
> with my code?
>
> If it counts for anything, *'text'* returns *'None'* in my debug
> statements (in the results() view).
>
>
> On Thursday, August 2, 2012 10:38:40 AM UTC-4, Marcin wrote:
>>
>> What's confusing about this? You don't explicitly create sessions, and
>> they last as long as they are configured to last, which by default is until
>> the session cookie is cleared.
>>
>> On Thu, Aug 2, 2012 at 10:31 AM, Gregory Thompson Jr. <
>> spockthompso...@gmail.com> wrote:
>>
>>>
>>>1. def login(request):
>>>2. m = Member.objects.get(username=**request.POST['username'])
>>>3. if m.password == request.POST['password']:
>>>4. request.session['member_id'] = m.id
>>>5. return HttpResponse("You're logged in.")
>>>6. else:
>>>7. return HttpResponse("Your username and password didn't
>>>match.")
>>>
>>> How about that for starters?
>>>
>>> The documentation goes from that to explaining how to set cookies.  How
>>> do they expect me to understand what's going on?
>>> There's absolutely NO explanation of what's going on in that code.
>>>
>>> request.session['member_id'] = m.id
>>>
>>> How the hell does that work?
>>>
>>> They don't tell you where the session is started, how, what the scope of
>>> the session declaration is, etc...
>>>
>>> http://www.youtube.com/watch?**v=YFd9NLZFmvo=1=**
>>> PL6CB0A9FA1D9C736A=**results_video<http://www.youtube.com/watch?v=YFd9NLZFmvo=1=PL6CB0A9FA1D9C736A=results_video>
>>>
>>>
>>> See that video?  The video shows you how to use sessions very quickly.
>>>  How did the person in the video get ALL of that code from just the
>>> documentation?
>>>
>>> If all readers in this thread and kindly tackle each point I made, I
>>> promise you your own KFC when I start my empire.  Until then, I really just
>>> need someone to give me the step-by-step on this one.  I'm completely new
>>> to the framework and the documentation thus far has not been helpful.  I've
>>> mainly gotten by with the help of StackOverflow, IRC, and random code
>>> snippets online -- and occasionally, some outdated books.
>>>
>>> If you don't want to explain or aren't going to ask me progressive
>>> questions with regards to my confusion, please just skip over my plight.
>>>
>>> Thank you all.
>>>
>>> On Thursday, August 2, 2012 9:54:21 AM UTC-4, Daniel Roseman wrote:
>>>>
>>>> On Thursday, 2 August 2012 14:06:04 UTC+1, Gregory Thompson Jr. wrote:
>>>>>
>>>>> 
>>>>>
>>>>> I really don't understand the following, and I've read the documentation 
>>>>> over and over.  I've been on this for two days:
>>>>>
>>>>>
>>>>>- How to initiate a session
>>>>>- How sessions are checked
>>>>>- How to retrieve form data from one page to handle the data on 
>>>>> another.
>>>>>
>>>>> Again, I've read through the documentation.  I've asked on IRC but 
>>>>> everyone pretty much just says "RTFM" even when I tell them I have.  This 
>>>>> is absolutely frustrating as an extreme beginner.
>>>>>
>>>>> I'd also like to add that I DO understand the core Python language.  
>>>>> Please, unless it's absolutely necessary, don't try explaining to me what 
>>>>> a dictionary, tuple, list, etc... is.  I've already had my intelligence 
>>>>> insulted by the users on IRC in this regard.  I really just don't 
>>>>> understand the sessions documentation.
>>>>>
>>>>>
>>>>
>>>> So, you didn't understand the documentation, but you also don't want to
>>>> be told what dictionaries/lists/tuples are.  How about you tell us which
&

Re: Major Trouble Understanding Sessions Documentation

2012-08-02 Thread Marcin Tustin
What's confusing about this? You don't explicitly create sessions, and they
last as long as they are configured to last, which by default is until the
session cookie is cleared.

On Thu, Aug 2, 2012 at 10:31 AM, Gregory Thompson Jr. <
spockthompso...@gmail.com> wrote:

>
>1. def login(request):
>2. m = Member.objects.get(username=request.POST['username'])
>3. if m.password == request.POST['password']:
>4. request.session['member_id'] = m.id
>5. return HttpResponse("You're logged in.")
>6. else:
>7. return HttpResponse("Your username and password didn't
>match.")
>
> How about that for starters?
>
> The documentation goes from that to explaining how to set cookies.  How do
> they expect me to understand what's going on?
> There's absolutely NO explanation of what's going on in that code.
>
> request.session['member_id'] = m.id
>
> How the hell does that work?
>
> They don't tell you where the session is started, how, what the scope of
> the session declaration is, etc...
>
>
> http://www.youtube.com/watch?v=YFd9NLZFmvo=1=PL6CB0A9FA1D9C736A=results_video
>
>
> See that video?  The video shows you how to use sessions very quickly.
>  How did the person in the video get ALL of that code from just the
> documentation?
>
> If all readers in this thread and kindly tackle each point I made, I
> promise you your own KFC when I start my empire.  Until then, I really just
> need someone to give me the step-by-step on this one.  I'm completely new
> to the framework and the documentation thus far has not been helpful.  I've
> mainly gotten by with the help of StackOverflow, IRC, and random code
> snippets online -- and occasionally, some outdated books.
>
> If you don't want to explain or aren't going to ask me progressive
> questions with regards to my confusion, please just skip over my plight.
>
> Thank you all.
>
> On Thursday, August 2, 2012 9:54:21 AM UTC-4, Daniel Roseman wrote:
>>
>> On Thursday, 2 August 2012 14:06:04 UTC+1, Gregory Thompson Jr. wrote:
>>>
>>> 
>>>
>>> I really don't understand the following, and I've read the documentation 
>>> over and over.  I've been on this for two days:
>>>
>>>
>>>- How to initiate a session
>>>- How sessions are checked
>>>- How to retrieve form data from one page to handle the data on another.
>>>
>>> Again, I've read through the documentation.  I've asked on IRC but everyone 
>>> pretty much just says "RTFM" even when I tell them I have.  This is 
>>> absolutely frustrating as an extreme beginner.
>>>
>>> I'd also like to add that I DO understand the core Python language.  
>>> Please, unless it's absolutely necessary, don't try explaining to me what a 
>>> dictionary, tuple, list, etc... is.  I've already had my intelligence 
>>> insulted by the users on IRC in this regard.  I really just don't 
>>> understand the sessions documentation.
>>>
>>>
>>
>> So, you didn't understand the documentation, but you also don't want to
>> be told what dictionaries/lists/tuples are.  How about you tell us which
>> bit of the examples under "Using sessions in views" (which I'm not linking
>> to because you've said you've read it) you didn't understand?
>> --
>> DR.
>>
>  --
> 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/-/0czW05_b8q8J.
>
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: ANN: pythonpackages.com beta

2012-07-28 Thread Marcin Tustin
" Powered by Pyramid <http://pylonsproject.org/> & Redis <http://redis.io/>
 on Heroku <http://heroku.com/>. "
You've got a nerve! :)

On Sat, Jul 28, 2012 at 7:28 PM, Alex Clark <acl...@aclark.net> wrote:

> Hi Django folks,
>
>
> I am reaching out to various Python-related programming communities in
> order to offer new help packaging your software.
>
> If you have ever struggled with packaging and releasing Python software
> (e.g. to PyPI), please check out this service:
>
>
> - http://pythonpackages.com
>
>
> The basic idea is to automate packaging by checking out code, testing, and
> uploading (e.g. to PyPI) all through the web, as explained in this
> introduction:
>
>
> - 
> http://docs.pythonpackages.**com/en/latest/introduction.**html<http://docs.pythonpackages.com/en/latest/introduction.html>
>
>
> Also, I will be available to answer your Python packaging questions most
> days/nights in #pythonpackages on irc.freenode.net. Hope to meet/talk
> with all of you soon.
>
>
>
> Alex
>
>
>
> --
> Alex Clark · 
> http://pythonpackages.com/ONE_**CLICK<http://pythonpackages.com/ONE_CLICK>
>
> --
> 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+unsubscribe@**
> googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
> .
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Washington, D.C.

2012-07-24 Thread Marcin Tustin
Unless I'm mistaken, they already posted an ad for this job to this list.

On Tue, Jul 24, 2012 at 9:43 AM, Andrew Moore <propensitygr...@gmail.com>wrote:

> Seeking a senior Django developer with 5 years experience to develop
> applications for a world famous media company (think a century of
> incredible photographs and stories in its signature monthly magazine) in
> Washington, D.C. Job is permanent, with full benefits. Compensation would
> be approximately $110,000.
>
> --
> 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/-/DOI2KWhbwJ4J.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: DISTINCT ON fields is not supported by this database backend

2012-06-24 Thread Marcin Tustin
DISTINCT ON fields is not supported by this database backend

What more is there to say? Either stop using the distinct method, or
switch to another database backend.


On Sun, Jun 24, 2012 at 11:24 AM, upmauro <upma...@gmail.com> wrote:

> Please help,
>
> http://dpaste.com/762942/
>
> Thanks alot !
>
> --
> 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/-/v5qIbmtR5ZwJ.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Import error

2012-06-22 Thread Marcin Tustin
Dear Emily,

Do you expect us to already have a copy of your code? If not, we need to
have a short, self-contained, and correct example demonstrating your issue.

Marcin

On Fri, Jun 22, 2012 at 8:43 AM, Emily <enemi...@gmail.com> wrote:

> Dear Marcin,
>
> I do not understand.
> I think I have done everything right and I am trying to find
> the source of the error where if there is someone who has
> experienced it they might be knowing where it is coming from..
>
> Emily
>
>
> On Fri, Jun 22, 2012 at 3:27 PM, Marcin Tustin <marcin.tus...@gmail.com>wrote:
>
>> Please take a look at: Short, Self Contained, Correct 
>> Example<http://sscce.org/>
>>
>> There's also some good advice at: What have you tried? - Matt 
>> Gemmell<http://whathaveyoutried.com/>
>>
>>
>> On Fri, Jun 22, 2012 at 8:10 AM, Emily N <enemi...@gmail.com> wrote:
>>
>>> Hi django users,
>>> I seem to have gotten a problem.
>>>
>>> I created a helper class in my project and I have failed to import
>>> the methods in it. Please help...
>>>
>>> This is the error I get...
>>>
>>> ImportError at /admin/
>>>
>>> cannot import name random_password
>>>
>>>  Request Method: GET  Request URL: http://127.0.0.1:8000/admin/  Django
>>> Version: 1.3.1  Exception Type: ImportError  Exception Value:
>>>
>>> cannot import name random_password
>>>
>>>  Exception Location: 
>>> /home/emily/Documents/AskJarvis/Etutor/../Etutor/Prototype/views.py
>>> in , line 1  Python Executable: /usr/bin/python  Python Version:
>>> 2.7.2  Python Path:
>>>
>>> ['/home/emily/Documents/AskJarvis/Etutor',
>>>  '/usr/lib/python2.7',
>>>  '/usr/lib/python2.7/plat-linux2',
>>>  '/usr/lib/python2.7/lib-tk',
>>>  '/usr/lib/python2.7/lib-old',
>>>  '/usr/lib/python2.7/lib-dynload',
>>>  '/usr/local/lib/python2.7/dist-packages',
>>>  '/usr/lib/python2.7/dist-packages',
>>>  '/usr/lib/python2.7/dist-packages/PIL',
>>>  '/usr/lib/python2.7/dist-packages/gst-0.10',
>>>  '/usr/lib/python2.7/dist-packages/gtk-2.0',
>>>  '/usr/lib/pymodules/python2.7',
>>>  '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
>>>  '/usr/lib/python2.7/dist-packages/ubuntuone-client',
>>>  '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
>>>  '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
>>>  '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
>>>  '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol']
>>>
>>>
>>>  --
>>> 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/-/C1nnWqPBZkwJ.
>>> 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.
>>>
>>
>>
>>
>> --
>> Marcin Tustin
>> Tel: 07773 787 105
>>
>>  --
>> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Import error

2012-06-22 Thread Marcin Tustin
Please take a look at: Short, Self Contained, Correct Example<http://sscce.org/>

There's also some good advice at: What have you tried? - Matt
Gemmell<http://whathaveyoutried.com/>

On Fri, Jun 22, 2012 at 8:10 AM, Emily N <enemi...@gmail.com> wrote:

> Hi django users,
> I seem to have gotten a problem.
>
> I created a helper class in my project and I have failed to import
> the methods in it. Please help...
>
> This is the error I get...
>
> ImportError at /admin/
>
> cannot import name random_password
>
>  Request Method: GET  Request URL: http://127.0.0.1:8000/admin/  Django
> Version: 1.3.1  Exception Type: ImportError  Exception Value:
>
> cannot import name random_password
>
>  Exception Location: 
> /home/emily/Documents/AskJarvis/Etutor/../Etutor/Prototype/views.py
> in , line 1  Python Executable: /usr/bin/python  Python Version:
> 2.7.2  Python Path:
>
> ['/home/emily/Documents/AskJarvis/Etutor',
>  '/usr/lib/python2.7',
>  '/usr/lib/python2.7/plat-linux2',
>  '/usr/lib/python2.7/lib-tk',
>  '/usr/lib/python2.7/lib-old',
>  '/usr/lib/python2.7/lib-dynload',
>  '/usr/local/lib/python2.7/dist-packages',
>  '/usr/lib/python2.7/dist-packages',
>  '/usr/lib/python2.7/dist-packages/PIL',
>  '/usr/lib/python2.7/dist-packages/gst-0.10',
>  '/usr/lib/python2.7/dist-packages/gtk-2.0',
>  '/usr/lib/pymodules/python2.7',
>  '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
>  '/usr/lib/python2.7/dist-packages/ubuntuone-client',
>  '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
>  '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
>  '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
>  '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol']
>
>
>  --
> 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/-/C1nnWqPBZkwJ.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: cad application

2012-06-21 Thread Marcin Tustin
Which parts of a CAD application, exactly, do you think Django might be
helpful with? It could certainly provide an interface to a storage backend.

On Thu, Jun 21, 2012 at 7:40 AM, Satvir Toor <toor.satvi...@gmail.com>wrote:

> can we make cad applications through the django??? If any one know
> about a link  where i can find such information just tell me.  I could
> not find any information regarding it.
>
> --
> Satvir Kaur
> satveerkaur.blogspot.in
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

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



Monitoring memory usage of an external component

2012-06-20 Thread Marcin Tustin
Not strictly a django question, but one I hope someone else here might have
faced.

I have an a site which depends on a java web service (of my own creation).
This seems to leak memory like a sieve, because of the various libraries
involved. This is a problem because my host sets a limit on the total usage
of memory by all of my processes.

*Does anyone here use a tool to monitor memory usage by individual
processes (or groups thereof), and run commands when certain levels are met?
* I'd like to kill and restart my java service (through supervisor) when it
gets above a certain size.

(I know about JVM memory options. These are not really effective for my
needs).

-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Taggit fragmentation (open letter)

2012-06-16 Thread Marcin Tustin
Alex,

More power to you for sticking your head above the parapet in relation to
this.

Marcin

On Saturday, June 16, 2012, Alex Gaynor wrote:

>
>
> On Mon, May 28, 2012 at 12:39 PM, Simon Bächler 
> <s...@feinheit.ch<javascript:_e({}, 'cvml', 's...@feinheit.ch');>
> > wrote:
>
>> I was just checking on github if there was a new version of django-taggit
>> and was quite shocked what I saw. The original repository had not been
>> updated for over a year. Yet there are 41 issues and 12 pull requests.
>> There are 114 forks, 17 of which had commits within the last month.
>>
>> Shortly, it is a big mess. I'm sure some of the forks have important
>> bugfixes while other just add features required for a certain project. But
>> it is really necessary that either Alex Gaynor or someone else gets that
>> app back on track.
>>
>> Taggit is the most advanced tagging app. But the main repo has some major
>> issues. Unicode being one of them, whitespace another one.
>>
>> It looks like hcarvalhoalves fork is the most maintained one now.
>>
>> Regards
>> Simon
>>
>
> Hi everyone,
>
> You're completely right.  I haven't had the time to maintain
> django-taggit, and the result has been unfair to everyone.  I don't have
> any more free time now than I did a month ago, which means I don't have the
> time to try to right the ship.  If there's an interest in trying to
> consolidate the development that's happened in all the forks, I can try to
> help in any way I can logistically, but I can't review patches or do new
> development at this point.
>
> Sorry,
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right
> to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
> "The people's good is the highest law." -- Cicero
>
>  --
> 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<javascript:_e({}, 'cvml', 
> 'django-users@googlegroups.com');>
> .
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com <javascript:_e({}, 'cvml',
> 'django-users%2bunsubscr...@googlegroups.com');>.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: WSGI help required. Getting a 'No module named myFirstProject.wsgi' error.

2012-05-29 Thread Marcin Tustin
Maybe you should actually show us the code, and tell us about your
environment.

On Tue, May 29, 2012 at 10:12 PM, Harvey <harvey.we...@googlemail.com>wrote:

> Setting up django for the first time
>
> Any ideas what i need to look at to get this error to go away. Not
> used "wsgi" before?
>
>
> ~/www/django/mySite.fcgi
>
> Traceback (most recent call last):
>  File "./mySite.fcgi", line 19, in 
>runfastcgi(method="threaded", daemonize="false")
>  File "/home1/harveywe/.local/lib/python2.6/site-packages/django/core/
> servers/fastcgi.py", line 182, in runfastcgi
>WSGIServer(get_internal_wsgi_application(), **wsgi_opts).run()
>  File "/home1/harveywe/.local/lib/python2.6/site-packages/django/core/
> servers/basehttp.py", line 60, in get_internal_wsgi_application
>"could not import module '%s': %s" % (app_path, module_name, e))
> django.core.exceptions.ImproperlyConfigured: WSGI application
> 'myFirstProject.wsgi.application' could not be loaded; could not
> import module 'myFirstProject.wsgi': No module named
> myFirstProject.wsgi
>
> I'm assume this explains why i'm getting "HTTP Error 500 Internal
> server error"
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Inverting URL security diligence - suggestions?

2012-05-29 Thread Marcin Tustin
At the end of your views.py, have a piece of code that iterates through the
keys in the local namespace, testing which are functions and applying your
decorator.

This will make it inconvenient to have utilities defined there, and it will
make it inconvenient to import individual functions (instead you'll have to
import their package, and access them through that). You could handle that
by having an exclusion list, though.

An alternative would be to put that in your urls.py (or import that into
your views file), and go through the data there to identify actual view
functions/objects.

On Tue, May 29, 2012 at 7:25 PM, phill <famousactr...@gmail.com> wrote:

> I'm interested in inverting the diligence required to lock down URLs for
> my Django app. That is to say, today we put decorators that are some form
> of @login_required on view methods that require auth, and no decorators on
> views that are wide open. I'd like to invert that (or force decorators on
> both). I played around with things like having the decorators pin an
> attribute to the function and then use a bit of middleware to assert the
> attribute exists. It runs into issues though, when it comes to using third
> party views like auth_views, etc. In general, I'm worried it might be too
> fragile.
>
> I'm curious if anyone's familiar with a robust strategy for achieving
> this. Seemed like something that might be a common request for apps that do
> most of their work under auth.
>
> Thanks in advance,
> Phill
>
> --
> 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/-/_Ilw1T03j7MJ.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Taggit fragmentation

2012-05-29 Thread Marcin Tustin
It does if anyone wants to be able to find the code.

On Tue, May 29, 2012 at 4:01 PM, Daniele Procida <dani...@vurt.org> wrote:

> On Tue, May 29, 2012, Marcin Tustin <marcin.tus...@gmail.com> wrote:
>
> >That's not quite right. Once you build up a reputation as the package to
> >have, if you don't at least hand over the project, you expose everyone to
> >the pain of figuring out how to either use your code, or which is best
> >place to get a forked version. It's certainly not hard to see that there
> >are people who want to take this over, and it's better to let *someone* do
> >that then leave the project to moulder and splinter.
>
> No-one needs to hand it over; if someone wants to, they can take it over.
>
> The project doesn't need an anointed successor to carry its flame.
>
> Daniele
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Is Django Right for Me?

2012-05-29 Thread Marcin Tustin
Django makes up one part of the web stack: the application server. It
doesn't have a robust webserver. It doesn't have its own database.
Likewise, it doesn't have its own client-side application toolkit.

On Tue, May 29, 2012 at 1:33 PM, KevinE <kelb...@elburyconsulting.com>wrote:

> Thanks for all the posts - the more I look the more overwhelming web
> development is getting. Seems every sentence I read requires starting
> another search to found out WTF this term or that term means grr
>
> Just one question - why would django avoid an offline mode - is that a
> completely unreasonable/undo-able extension? It seems to me that
> smartphones may eventually take over normal computers on the web but with
> the inherent distinction that on a smartphone you are not always guaranteed
> a data connection. I have been looking at all the mobile development
> systems and very few (if any) have really dealt with offline mode (not sure
> how powerful html5 is and whether you could support it for a complete
> database?)
>
> So if I uncouple my client app am I not losing all the advantages of using
> django? Seems to me I will be rewriting alot of my code...
>
> --
> 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/-/a_3u8sBjLFMJ.
>
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Taggit fragmentation

2012-05-29 Thread Marcin Tustin
That's not quite right. Once you build up a reputation as the package to
have, if you don't at least hand over the project, you expose everyone to
the pain of figuring out how to either use your code, or which is best
place to get a forked version. It's certainly not hard to see that there
are people who want to take this over, and it's better to let *someone* do
that then leave the project to moulder and splinter.

On Tue, May 29, 2012 at 3:00 PM, Javier Guerra Giraldez
<jav...@guerrag.com>wrote:

> On Tue, May 29, 2012 at 2:46 AM, Simon Bächler <s...@feinheit.ch> wrote:
> > I believe that if you publish a repo and you are the main contributor
> then it is your responsibility to maintain it.
>
> that's not how it works, fortunately.
>
> if you (or anybody) write something, you're free to share it.  that's
> it.  no responsibilities.
>
> if sharing code had such "responsibility to maintain", nobody would
> share anything.
>
> --
> Javier
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Off-line Django apps / Caching and synchronizing data

2012-05-27 Thread Marcin Tustin
You might also like this:
http://stackoverflow.com/questions/2786303/offline-mode-app-in-a-html5-browser-possible


On Sun, May 27, 2012 at 5:39 PM, Marcin Tustin <marcin.tus...@gmail.com>wrote:

> As per the above it's not really a django issue. The main django
> participation would be to provide an AJAX api which the client web page can
> sync with when it gets back online, which you would need to do for any AJAX
> application.
>
> If you do get your project working, do write up a tutorial. I'd be
> interested in reading about it for sure.
>
>
> On Sun, May 27, 2012 at 5:35 PM, KevinE <kelb...@elburyconsulting.com>wrote:
>
>> Just posted a similar question - sounds like we need a "DjangoOffline"
>>> component. Does such a beast exist?
>>>
>>  --
>> 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/-/Ti36numnK1UJ.
>>
>> 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.
>>
>
>
>
> --
> Marcin Tustin
> Tel: 07773 787 105
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Off-line Django apps / Caching and synchronizing data

2012-05-27 Thread Marcin Tustin
As per the above it's not really a django issue. The main django
participation would be to provide an AJAX api which the client web page can
sync with when it gets back online, which you would need to do for any AJAX
application.

If you do get your project working, do write up a tutorial. I'd be
interested in reading about it for sure.

On Sun, May 27, 2012 at 5:35 PM, KevinE <kelb...@elburyconsulting.com>wrote:

> Just posted a similar question - sounds like we need a "DjangoOffline"
>> component. Does such a beast exist?
>>
>  --
> 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/-/Ti36numnK1UJ.
>
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Is there are some id obfuscate libs in django?

2012-05-27 Thread Marcin Tustin
Why would you want this? Arbitrary integers are already completely opaque.

On Sun, May 27, 2012 at 4:12 PM, forrest yang <gforrest.y...@gmail.com>wrote:

> Just try to convert the increasing numeric id in the database to some
> other obfuscated id.
> The lib need to support long type integer range conversion and convert in
> two directions.
> Is there are some id obfuscate libs in django or widely used in django
> community?
>
> Any one knows that?
>
> Thanks
>
>  --
> 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/-/0lkBciSL24MJ.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Newbie Stuck on Django Tutorial 3 - Django Template system

2012-05-17 Thread Marcin Tustin
This is your problem:  {% else %}

Everything between {% and %} is interpreted as template-syntax code.

On Thu, May 17, 2012 at 7:39 PM, Bob Loblaw <hudso...@gmail.com> wrote:

> I was cruising along fine, but am stuck now...  Any help would be
> greatly appreciated
>
> OS: Mac OS X Version 10.6.8
> Python: 2.6.1
> Django: 1.4
>
> Issue: system throwing an error message during template rendering when
> trying to implement Django template system.  So I guess I must have a
> config snag somewhere in Django.
>
>
>
> Here is the error message...
>
> Error during template rendering
>
> In template /data/templates/polls/index.html, error at line 20
> Invalid block tag: '<span'
> 10  p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;
> color: #008080; background-color: #e0ffb8}
> 11  p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;
> background-color: #e0ffb8}
> 12  p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier;
> color: #80; background-color: #e0ffb8}
> 13  span.s1 {color: #99}
> 14  span.s2 {color: #00}
> 15  span.s3 {color: #80}
> 16  span.s4 {color: #bb8844}
> 17
> 18  
> 19  
> 20  {%
> if latest_poll_list  class="s1">%}
> 21   class="s3">ul
> 22  {% class="s2"> for poll in  span>latest_poll_list %} b>
> 23  lia span> href="/polls/ span>{{  span>poll.id }} span>/" class="s1">{{ poll.question class="s2"> }} class="s3">/a/li
> 24   class="s1">{% endfor %} span>
> 25  /ul
> 26  {% else  class="s1">%}
> 27   class="s3">pNo polls are available. class="s3">/p
> 28  {% endif  class="s1">%}
> 29  
> 30  
>
>
> Here is the index.html (verbatim from tutorial)...
>
> {% if latest_poll_list %}
>
>{% for poll in latest_poll_list %}
>{{ poll.question }} li>
>{% endfor %}
>
> {% else %}
>No polls are available.
> {% endif %}
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Problem with Jquery over Django

2012-05-16 Thread Marcin Tustin
Host your JS on your server, and use an absolute URL. This is what the
STATIC_URL setting is for.

On Wed, May 16, 2012 at 5:15 PM, Amr Abdel-wahab <
amr.mohamed.abdelwa...@gmail.com> wrote:

> Oh ok, then can you give me a solution?
>
> --
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Problem with Jquery over Django

2012-05-16 Thread Marcin Tustin
Once again:  You have a relative url for your JS. This is expanded to a
different location depending on where it is served from.

This means that in one case, your browser can find the file on the
filesystem, but in the other, it tries to pull it from your server.

On Wed, May 16, 2012 at 5:03 PM, Amr Abdel-wahab <
amr.mohamed.abdelwa...@gmail.com> wrote:

> It just doesn't work if rendered but the same exact file does work if
> I opened it in a browser view
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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 for the first time

2012-05-16 Thread Marcin Tustin
Some of these are python, and some of these are shell commands. If you are
not familiar with python, then try a short tutorial before attempting to
learn django.

On Wed, May 16, 2012 at 12:02 PM, MEL <mortenel...@gmail.com> wrote:

> Can anyone help me ?
> Can't even create my first site  in the tutorial :-(
>
> Python 2.7.3 (default, Apr 20 2012, 22:39:59)
> [GCC 4.6.3] on linux2
> Type "copyright", "credits" or "license()" for more information.
> >>> import sys
> >>> sys.path.append("/home/morten/django")
> >>> import django
> >>> print django.get_version()
> 1.5.dev20120515080834
> >>> django-admin.py startproject melsite
> SyntaxError: invalid syntax
> >>> django-admin.py
>
> Traceback (most recent call last):
>  File "<pyshell#5>", line 1, in 
>django-admin.py
> NameError: name 'admin' is not defined
> >>>
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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 Marcin Tustin
.net <mailto:ngont...@epitech.net>>
>>>sympav...@gmail.com <mailto:sympav...@gmail.com>
>>><mailto:sympav...@gmail.com <mailto:sympav...@gmail.com>>
>>>--**__**
>>> --
>>>/*Aux hommes il faut un chef, et au*//* chef il faut des hommes!*/
>>>
>>>
>>>--
>>>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<django-users@googlegroups.com>
>>> >.
>>>To unsubscribe from this group, send email to
>>>
>>> django-users+unsubscribe@__goo**glegroups.com<http://googlegroups.com>
>>>
>>> <mailto:django-users%**2bunsubscr...@googlegroups.com<django-users%252bunsubscr...@googlegroups.com>
>>> **>.
>>>For more options, visit this group at
>>>
>>> http://groups.google.com/__**group/django-users?hl=en<http://groups.google.com/__group/django-users?hl=en>
>>>
>>> <http://groups.google.com/**group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>> >.
>>>
>>>
>>>
>>>--
>>>Jani Tiainen
>>>
>>>- Well planned is half done and a half done has been sufficient
>>>before...
>>>
>>>
>>>--
>>>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<django-users@googlegroups.com>
>>> >.
>>>To unsubscribe from this group, send email to
>>>django-users+unsubscribe@__goo**glegroups.com<http://googlegroups.com>
>>>
>>> <mailto:django-users%**2bunsubscr...@googlegroups.com<django-users%252bunsubscr...@googlegroups.com>
>>> **>.
>>>For more options, visit this group at
>>>
>>> http://groups.google.com/__**group/django-users?hl=en<http://groups.google.com/__group/django-users?hl=en>
>>>
>>> <http://groups.google.com/**group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>> >.
>>>
>>>
>>>
>>>
>>> --
>>> ngont...@epitech.net <mailto:ngont...@epitech.net>
>>> sympav...@gmail.com <mailto:sympav...@gmail.com>
>>> --**--
>>> /*Aux hommes il faut un chef, et au*//* chef il faut des hommes!*/
>>>
>>> --
>>> 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+unsubscribe@**googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/**group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>> .
>>>
>>
>>
>> --
>> Jani Tiainen
>>
>> - Well planned is half done and a half done has been sufficient before...
>>
>> --
>> 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+unsubscribe@**
>> googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
>> For more options, visit this group at http://groups.google.com/**
>> group/django-users?hl=en<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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: sweat-equity

2012-05-16 Thread Marcin Tustin
Cool.

On Wed, May 16, 2012 at 1:06 AM, Mike Dewhirst <mi...@dewhirst.com.au>wrote:

> Marcin
>
> Some changes to increase coherence and a new Project Bootstrap page to
> prompt incorporation of the project.
>
> https://github.com/mdewhirst/**sweat-equity/wiki/_pages<https://github.com/mdewhirst/sweat-equity/wiki/_pages>
>
> I will take it to my lawyer before starting and I'll post the changes then.
>
> Thanks Marcin
>
> Mike
>
>
> On 15/05/2012 10:41pm, Mike Dewhirst wrote:
>
>> On 15/05/2012 6:23pm, Marcin Tustin wrote:
>>
>>> You will want to have a lawyer advise you on your agreements. Although
>>> your drafting is pretty tight, it could be a bit tighter,
>>>
>>
>> I'd like to strike a decent balance. My own lawyer is a tad aggressive
>> and to be honest I wouldn't sign anything he wrote. He makes you feel like
>> you are putting on manacles. He is brilliant at licensing but must be
>> worried about people finding loopholes in his contracts.
>>
>> My approach is different. I want an equity agreement which assumes good
>> intentions and delivers a valuable partnership. In the end I want golden
>> handcuffs not manacles.
>>
>>  and there are certain legal issues that arise, such as how a "project"
>>> can own anything (such as copyrights).
>>>
>>
>> You are correct. This came from my own situation where currently my
>> company "owns" the project. However, I can't expect anyone to invest in my
>> company when the project is the real focus. In due course I expect to
>> incorporate a new company which in effect will be the project. This is
>> probably common enough to need addressing. I will develop and include a
>> clause which makes that clear.
>>
>>  You'll likely want a jurisdiction and choice-of-law clause as well.
>>>
>>
>> Right again. I need that for my own agreement so I'll add one.
>>
>> Thanks Marcin
>>
>> Mike
>>
>>
>>> On Tue, May 15, 2012 at 1:40 AM, Mike Dewhirst 
>>> <mi...@dewhirst.com.au>> mi...@dewhirst.com.au>**> wrote:
>>>
>>>This is off-topic except for people starting un(der)-funded Django
>>>projects.
>>>
>>>I have written some guidelines for stakeholders and developers
>>>plus an equity-in-lieu-of-salary agreement.
>>>
>>>The guidelines come from my own experience in projects. Apologies
>>>to Scrum and eXtreme purists but I need to start easy.
>>>
>>>
>>> https://github.com/mdewhirst/**sweat-equity/wiki/_pages<https://github.com/mdewhirst/sweat-equity/wiki/_pages>
>>>
>>>I would really appreciate some constructive criticism, suggestions
>>>etc before I try and use it for real.
>>>
>>>You may find it useful for your own project. The idea is that a
>>>venture capitalist will be more confident to invest if you have a
>>>dev team locked in and the project is already kicking goals.
>>>
>>>Thanks for any feedback.
>>>
>>>Mike
>>>
>>>
>>>
>>>-- 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 <django-users@googlegroups.com>
>>> >.
>>>To unsubscribe from this group, send email to
>>>
>>> django-users+unsubscribe@**googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>>> <mailto:django-users%**2bunsubscr...@googlegroups.com<django-users%252bunsubscr...@googlegroups.com>
>>> **>.
>>>For more options, visit this group at
>>>
>>> http://groups.google.com/**group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>> .
>>>
>>>
>>>
>>>
>>> --
>>> Marcin Tustin
>>> Tel: 07773 787 105
>>>
>>> --
>>> 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+unsubscribe@*
>>> *googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en<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+unsubscribe@**
> googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
> .
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: sweat-equity

2012-05-15 Thread Marcin Tustin
You will want to have a lawyer advise you on your agreements. Although your
drafting is pretty tight, it could be a bit tighter, and there are certain
legal issues that arise, such as how a "project" can own anything (such as
copyrights). You'll likely want a jurisdiction and choice-of-law clause as
well.

On Tue, May 15, 2012 at 1:40 AM, Mike Dewhirst <mi...@dewhirst.com.au>wrote:

> This is off-topic except for people starting un(der)-funded Django
> projects.
>
> I have written some guidelines for stakeholders and developers plus an
> equity-in-lieu-of-salary agreement.
>
> The guidelines come from my own experience in projects. Apologies to Scrum
> and eXtreme purists but I need to start easy.
>
>
> https://github.com/mdewhirst/**sweat-equity/wiki/_pages<https://github.com/mdewhirst/sweat-equity/wiki/_pages>
>
> I would really appreciate some constructive criticism, suggestions etc
> before I try and use it for real.
>
> You may find it useful for your own project. The idea is that a venture
> capitalist will be more confident to invest if you have a dev team locked
> in and the project is already kicking goals.
>
> Thanks for any feedback.
>
> Mike
>
>
>
> --
> 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+unsubscribe@**
> googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
> .
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Best practices for calling an external service in a Django app

2012-05-11 Thread Marcin Tustin
The thing is, you will then be doing it synchronously, because python's
global interpreter lock means that threads are never really parallel.

To avoid having the sensitive data in your celery queues, have your task
retrieve the sensitive data from the database (if that's where its coming
from). If it's coming from the frontend, then you are going to have to
store it somewhere if you want to do this asynchronously. I doubt that
poses such a great additional security risk, as long as it all remains on
the same machine, especially if you use a volatile celery backend (e.g.
redis with no persistence enabled).

If you are doing it synchronously, then you may want to consider if the
client can pass you the data via an ajax call from a web worker, which will
improve the user perception of performance.

On Fri, May 11, 2012 at 11:17 AM, Thomas Orozco
<g.orozco.tho...@gmail.com>wrote:

> Thanks for the information!
>
> Using celery was my first idea too, but here it is not practical as I'll
> be transferring sensitive information through the socket and I'd rather
> avoid having hanging around in the Celery queue.
>
> So I guess opening the socket from inside the view code and then closing
> it would be OK?
>  Le 11 mai 2012 11:17, "Marcin Tustin" <marcin.tus...@gmail.com> a écrit :
>
> I use a celery task to make this sort of job asynchronous. The task makes
>> a new connection to the "remote" (same server) service each time. This
>> proves to be sufficiently fast.
>>
>> If you are making a lot of requests, the overhead of making new
>> connections may prove to be significant. I wouldn't anticipate this unless
>> you are making a new request more frequently than perhaps once a second
>> (and even then, I would wait and see what performance was like).
>>
>> On Fri, May 11, 2012 at 9:50 AM, Thomas Orozco <g.orozco.tho...@gmail.com
>> > wrote:
>>
>>> Hi,
>>>
>>> Here's my situation: one of my views needs to call an external service
>>> (through a socket ; actually the said service is on the same server).
>>>
>>> I don't even need to know about the service's response as I'll inquire
>>> about it asynchronously in an effort to avoid delay on the user's end.
>>>
>>> What are the best practices here ?
>>> Should I open a socket connection each time I want to access the
>>> service? Should I keep one open all the time in a separate thread?
>>>
>>> Thanks in advance,
>>>
>>> Thomas
>>>
>>> --
>>> 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.
>>>
>>
>>
>>
>> --
>> Marcin Tustin
>> Tel: 07773 787 105
>>
>>  --
>> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Best practices for calling an external service in a Django app

2012-05-11 Thread Marcin Tustin
I use a celery task to make this sort of job asynchronous. The task makes a
new connection to the "remote" (same server) service each time. This proves
to be sufficiently fast.

If you are making a lot of requests, the overhead of making new connections
may prove to be significant. I wouldn't anticipate this unless you are
making a new request more frequently than perhaps once a second (and even
then, I would wait and see what performance was like).

On Fri, May 11, 2012 at 9:50 AM, Thomas Orozco <g.orozco.tho...@gmail.com>wrote:

> Hi,
>
> Here's my situation: one of my views needs to call an external service
> (through a socket ; actually the said service is on the same server).
>
> I don't even need to know about the service's response as I'll inquire
> about it asynchronously in an effort to avoid delay on the user's end.
>
> What are the best practices here ?
> Should I open a socket connection each time I want to access the service?
> Should I keep one open all the time in a separate thread?
>
> Thanks in advance,
>
> Thomas
>
> --
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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 - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Marcin Tustin
t;> 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.
>
>
>
> --
> Daniel Sokolowski
> Web Engineer
> Danols Web Engineeringhttp://webdesign.danols.com/
> Office: 613-817-6833
> Fax: 613-817-4553
> Toll Free: 1-855-5DANOLS
> Kingston, ON K7L 1H3, Canada
>
>
> Notice of Confidentiality:
> The information transmitted is intended only for the person or entity to 
> which it is addressed and may contain confidential and/or privileged 
> material. Any review re-transmission dissemination or other use of or taking 
> of any action in reliance upon this information by persons or entities other 
> than the intended recipient is prohibited. If you received this in error 
> please contact the sender immediately by return electronic transmission and 
> then immediately delete this transmission including all attachments without 
> copying distributing or disclosing same.
>
>  --
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: [Deploy] - Missing css, js ...

2012-05-02 Thread Marcin Tustin
This is not a django question. It relates to your deployment setup. Ask at
the forums for your host. In addition, this does not contain anything like
the detail that anyone anywhere would need to answer.

On Wed, May 2, 2012 at 3:06 PM, MN TS <mnt...@gmail.com> wrote:

>  Hello Comrades ,
>
> I'm starting with Django and I have a bluehost,
> My problem is that : i missed css , js (media)
>
> I create symbol link but its not working.
>
> ln -s /home5/user/public_html/MyProject/src/app/static/ static
>
> Do you know why is happen
> this to me?
>
> Regards
> Tsolmon.
>
> --
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: dutch django hoster

2012-04-29 Thread Marcin Tustin
checkout djangofriendly.com - there are a couple of dutch-speaking hosting
companies with decent reputations.

On Sat, Apr 28, 2012 at 23:23, Vidja <vidja.hun...@gmail.com> wrote:

> I'm looking for a reliable Dutch (speaking) hosting company that is
> able to host a Django based website for a small non-profit
> organization with ,surprise, ... a low budget. The idea is that when
> something goes wrong they can just call a support help desk and they
> don't have to deal with maintenance etc. The expected traffic is low.
>
> Any suggestions are welcome.
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

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

2012-04-26 Thread Marcin Tustin
Thank you for this, but that page does not identify any of the persons as
admins of this list.

On Thu, Apr 26, 2012 at 13:10, kenneth gonsalves <law...@thenilgiris.com>wrote:

> On Thu, 2012-04-26 at 13:04 +0100, Marcin Tustin wrote:
> > > On Thu, 2012-04-26 at 12:49 +0100, Marcin Tustin wrote:
> > > > I shall be grateful if the Group administrator would identify
> > > > themself, as
> > > > google does not make this information public.
> > >
> > > please drop this. From long experience with this list I can assure
> > you
> > > that any behavior against list policies is promptly quashed here -
> > there
> > > is no need to make a fuss and complain - the list admins are on the
> > job.
> > >
> >
> > If the admins are doing their job, there is no reason for them to
> > refuse to
> > identify themselves.
>
> https://docs.djangoproject.com/en/1.4/internals/committers/
> --
> regards
> Kenneth Gonsalves
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

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

2012-04-26 Thread Marcin Tustin
On Thu, Apr 26, 2012 at 13:02, kenneth gonsalves <law...@thenilgiris.com>wrote:

> On Thu, 2012-04-26 at 12:49 +0100, Marcin Tustin wrote:
> > I shall be grateful if the Group administrator would identify
> > themself, as
> > google does not make this information public.
>
> please drop this. From long experience with this list I can assure you
> that any behavior against list policies is promptly quashed here - there
> is no need to make a fuss and complain - the list admins are on the job.
>

If the admins are doing their job, there is no reason for them to refuse to
identify themselves.

-- 
Marcin Tustin

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



Group administrator

2012-04-26 Thread Marcin Tustin
I shall be grateful if the Group administrator would identify themself, as
google does not make this information public.

-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: why django document does not specify how to use non-global middleware

2012-04-26 Thread Marcin Tustin
Y

On Thu, Apr 26, 2012 at 12:29, Tom Evans <tevans...@googlemail.com> wrote:

> On Thu, Apr 26, 2012 at 12:20 PM, Marcin Tustin <marcin.tus...@gmail.com>
> wrote:
> > On Thu, Apr 26, 2012 at 09:34, Tom Evans <tevans...@googlemail.com>
> wrote:
> >>
> >> What one framework may call something may not be what another
> >> framework does, and users moving between frameworks don't need to be
> >> belittled just because they do not know how that framework names
> >> things.
> >>
> >
> > If you are saying that I have belittled the OP, you should withdraw that
> > accusation, or show that it is in fact the case that all struts
> development
> > practices should be copied in Django.
> >
>
> I stand by everything I said.
>
> If I had received that reply from you I would have felt belittled, and
> I said nothing about "all struts development practices", only
> "per-view middleware", which is a common feature of many frameworks,
> including both Django and struts.
>
>
No, *I* was the one who referred to all struts development practices. It
remains the case that just because someone is used to doing something in
struts, it does not follow that they should be doing that in Django. You
may be so sensitive that you find it belittling to be told something like
that, but by no objective standard can it be called belittling.

I will be complaining to the list administrators. The only abusive
behaviour has come from you, slandering me.

-- 
Marcin Tustin

-- 
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: why django document does not specify how to use non-global middleware

2012-04-26 Thread Marcin Tustin
On Thu, Apr 26, 2012 at 09:34, Tom Evans <tevans...@googlemail.com> wrote:
>
> What one framework may call something may not be what another
> framework does, and users moving between frameworks don't need to be
> belittled just because they do not know how that framework names
> things.
>
>
If you are saying that I have belittled the OP, you should withdraw that
accusation, or show that it is in fact the case that all struts development
practices should be copied in Django.

-- 
Marcin Tustin

-- 
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: why django document does not specify how to use non-global middleware

2012-04-25 Thread Marcin Tustin
Just because you used to do it in Struts, it does not mean that it is the
best, or even a good, way to do it in django.

On Wed, Apr 25, 2012 at 17:26, DanYun Liu <liudan...@gmail.com> wrote:

> I am new to django, before django I used struts2 to build web application.
> It is common that we need to apply some middleware to a part of views and
> others not. I didn't find any userful information on the django site, so I
> searched the stackoverflow and got the right answer.
>
> http://stackoverflow.com/questions/2916966/non-global-middleware-in-django
>
>
> I will be useful to people who is familiar struts but new to django  to
> include how to user non-global middleware when introuduce the midlleware.
>
>
> --
> Pursuit the freedom of the soul.
>
> --
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

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

2012-04-25 Thread Marcin Tustin
Apologies, these are job application questions:
https://www.odesk.com/jobs/Programmers-Python-Django-and-client-side-programming-MySQL_~~c7db577bb2246e77?tot=5000=4&_redirected


On Wed, Apr 25, 2012 at 15:37, Marcin Tustin <marcin.tus...@gmail.com>wrote:

> These are plainly your homework questions. I suggest that you undertake
> your own research.
>
>
> On Wed, Apr 25, 2012 at 15:20, jacob <tomy.dd...@gmail.com> wrote:
>
>> Hello everybody.
>>
>> I am a newbie in django development and need your help for some
>> questions.
>>
>> 1. Under what circumstances would you avoid using the Django platform?
>> 2. How do you describe the data layer in Django? Where would you place
>> additional functionality to the domain objects? And where would you
>> put behavior that is related to the entire table?
>> 3. What would be the syntax to place a Python code block in a Django
>> template?
>> 4. Choose one NoSQL product, describe what it is supposed to be used
>> for, and under which circumstances you would choose an RDBMS and not
>> this NoSQL.
>>
>> If anybody answer for even a question on detail, I will appreciate it.
>>
>> Looking forward to hearing soon.
>>
>> Thanks & best regards
>>
>> - Jacob
>>
>> --
>> 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.
>>
>>
>
>
> --
> Marcin Tustin
> Tel: 07773 787 105
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

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

2012-04-25 Thread Marcin Tustin
These are plainly your homework questions. I suggest that you undertake
your own research.

On Wed, Apr 25, 2012 at 15:20, jacob <tomy.dd...@gmail.com> wrote:

> Hello everybody.
>
> I am a newbie in django development and need your help for some
> questions.
>
> 1. Under what circumstances would you avoid using the Django platform?
> 2. How do you describe the data layer in Django? Where would you place
> additional functionality to the domain objects? And where would you
> put behavior that is related to the entire table?
> 3. What would be the syntax to place a Python code block in a Django
> template?
> 4. Choose one NoSQL product, describe what it is supposed to be used
> for, and under which circumstances you would choose an RDBMS and not
> this NoSQL.
>
> If anybody answer for even a question on detail, I will appreciate it.
>
> Looking forward to hearing soon.
>
> Thanks & best regards
>
> - Jacob
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Where are the women?

2012-04-24 Thread Marcin Tustin
I'm not suggesting that "women can't handle open source". If anything, I'm
amazed that anyone chooses to work with proprietary products from the big
vendors, because it generally seems harder.

On Tue, Apr 24, 2012 at 15:34, Tom Evans <tevans...@googlemail.com> wrote:

> On Tue, Apr 24, 2012 at 3:20 PM, Marcin Tustin <marcin.tus...@gmail.com>
> wrote:
> > My experience is that there are very few women working in shops that
> > primarily use open source technology. When I've encountered them, it's
> been
> > in Microsoft shops, and very large technology organisations which love
> > proprietary technologies.
> >
>
> I don't think this is particularly true. I've met many male developers
> who can't handle open source at all.
>
> We use primarily open source - mainly python - at $JOB. In our UK dev
> department we have ~ 25 developers, and ~ 20% of them are women. In
> our US department it is more like 10%.
>
> This compares to when I was at university (~10 years ago), when ~10%
> of my peers were female. I don't think compsci admissions will reach
> gender equality any time soon, so you can expect to see this trend
> continue.
>
> All of my colleagues are excellent (which is why we hired them!),
> regardless of gender :)
>
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Where are the women?

2012-04-24 Thread Marcin Tustin
My experience is that there are very few women working in shops that
primarily use open source technology. When I've encountered them, it's been
in Microsoft shops, and very large technology organisations which love
proprietary technologies.

My guess is that open source is not really the issue (although it might be)
- it's probably something to do with whatever drives the choices or
prospects of women for technology employment towards those sorts of
employers.

If this is driven by women's preferences, then maybe that preference
basically militates against open source participation as well.

On Tue, Apr 24, 2012 at 15:14, Daniele Procida <dani...@vurt.org> wrote:

> I was looking at <http://2012.djangocon.eu/schedule/> again with excited
> anticipation, and reading through the talk summaries.
>
> <http://2012.djangocon.eu/schedule/involving-women-in-the-community/> -
> and then I had a closer look at the names of this year's speakers.
>
> There are *two* women out of the 24 or so speakers listed, and only one is
> doing a solo talk.
>
> This is absolutely not a comment about or criticism of the organisers;
> apart from anything, I know that they're aware of and concerned about the
> issues. They can only select proposals they've been given, or have
> attendees who sign up.
>
> At last year's DjangoCon Europe, there were few women attending. At PyCon
> UK last year, there was a similar dearth. Someone remarked to me then that
> a Microsoft event there would be a much more equal distribution.
>
> So where are the women?
>
> Does open source put women off? Is it something in the open source
> community, or the personalities you find in it? The nature of these
> conferences?
>
> It's true that some open software communities, and the people in them, are
> pretty unwelcoming to newcomers, or seem to delight in expressing agressive
> and macho attitudes, but Python and Django are clearly not like that (quite
> the opposite in fact).
>
> The conferences I've attended have been relaxed, warm and friendly. The
> worst you could say is that they are a little bit nerdy, which as a
> complaint would be like saying that medical conferences tend to be a little
> bit doctory.
>
> The last thing I want is for a woman to read this (there won't be that
> many reading in any case, I suppose) and decide not to go because she
> doesn't like the thought of finding herself one person in ten; but from
> what I understand she's one in ten in the workplace and in the industry
> anyway.
>
> I assume that most people agree this is a problem and worth addressing,
> but perhaps I'm wrong.
>
> If women are not part of the community, or not coming forward to do things
> like give talks at - or even simply attend - its conferences, what if
> anything should be done about it?
>
> Daniele
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Multi object form

2012-04-24 Thread Marcin Tustin
There is documentation on the various options. It is possible to specify no
extras.

On Tue, Apr 24, 2012 at 15:09, David
<davidwi...@adviserbreakthrough.co.uk>wrote:

> Hi
>
> That is brilliant thank you! I've been struggling with this for too long :(
>
> MyModel Set = modelformset_factory(MyModel)
> formset =  MyModelFormSet(queryset=
> MyModel.objects.select_related().filter(left_team__isnull=True).filter(team=pk))
>
> variables = RequestContext(request, {
> 'form': formset,
> })
>
> Seems to do the job, except it adds an extra form at the bottom which I
> guess is for additions. Is there a way to remove that? so it is restricted
> solely to the results from my queryset?
>
> --
> 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/-/-zXhy_qXJcgJ.
>
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Multi object form

2012-04-24 Thread Marcin Tustin
Create a modelform, then use a formset to manage all of the modelforms.

On Tue, Apr 24, 2012 at 14:47, David
<davidwi...@adviserbreakthrough.co.uk>wrote:

> Hello
>
> I need to produce a form that will contain a series of rows. Each row will
> be a specific object. Columns for each row will have data that will need
> editting.
>
> ie:
>
> Person1  EditA  EditB  EditC
> Person2  EditA  EditB  EditC
> Person3  EditA  EditB  EditC
> Person4  EditA  EditB  EditC
>
> The form should be submitted by one submit button that then updates each
> object.
>
> Is it possible to produce this sort of form through any builtin Django
> functionality? From my (limited) understanding through reading all the docs
> I can find, this isn't something that can be achieved by a modelform or
> formsets.
>
> Thank you for any assistance
>
> --
> 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/-/igkjCkj6T4AJ.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Ignoring empty forms in a formset

2012-04-23 Thread Marcin Tustin
You will want to edit the management form values on the client side, as
described in the documentation.

On Mon, Apr 23, 2012 at 15:42, Martin Tiršel <martin.tir...@gmail.com>wrote:

> Nobody knows how to ignore empty forms in a formset? I have to write some
> custom method on a form that checks all fields and returns False if any of
> the fields is filled or is there any other solution?
>
> Martin
>
> On Sunday, April 22, 2012 6:44:53 PM UTC+2, Martin Tiršel wrote:
>>
>> Hello,
>>
>> I have a formset and some JavaScript to add more forms into this formset.
>> In a view, I iterate through the formset saving (not a ModelForm just Form
>> with save method) each form:
>>
>> for form in formset:
>> form.save()
>>
>> But I want to ignore empty forms that were added by JavasScript and not
>> removed. How can I do this?
>>
>> Thanks,
>> Martin
>>
>  --
> 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/-/Y_DfzKjYiYwJ.
>
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: python list in javascript

2012-04-20 Thread Marcin Tustin
You'd have to show us the generated output. In any case, this is more of a
javascript question.

If you want to put some data into a rendered page, use the json module to
create the data in your view, and paste the whole json string using your
template.

On Fri, Apr 20, 2012 at 13:53, dummyman dummyman  wrote:

> Hi,
>
> I have a python dictionary which i want to add to the javascript object on
> load in django template
>
> i followed this method
>
>
> 

Re: Developing first Django Site -- any advice on co-developing effectively with a professional?

2012-04-20 Thread Marcin Tustin
I would suggest that you let the professional take the lead on coding -
that means that he should probably assign the bits that you do, and control
the technical aspects of the design. Hopefully you have project management
experience, and can handle that side, and you should keep track of the
features that you want - both to make sure there isn't feature creep, and
to be ready to decide what to let go if this goes slower than planned (as
it will - it always does without a well-functioning team familiar with
every step of what they are doing).

And don't be surprised if you find the coding hard. Coding is hard - much
harder than the activities of most other professions.

On Fri, Apr 20, 2012 at 11:40, Michael A <anu...@gmail.com> wrote:

> Dear Django community,
>
> I'm excited to develop my first site in Django and am trying
> understand the best way to approach things. I don't have a strong
> coding background, but I'm comfortable with the tutorial, ~3 hours of
> screencasts, and "Beginning Django E-Commerce" by James McGaw.
>
> Designed the database and coded the model layer myself... hiring a
> designer for the front-end work, and hiring a django developer to co-
> develop via github. Worked out the development roadmap and features
> needed for launch (below).
>
> My goal is to develop 30-50% myself with feedback/review from the
> professional, with them coding the rest and me learning from their
> code. Has anyone tried something similar before? Any concerns or
> advice on partnering effectively?
>
> Our feature list is below, with hourly estimates from the developer.
> I've starred those I'm aspiring to code myself.
> Also interested in whether we can leverage existing code/libraries to
> solve some of these challenges. Thanks!!
>
> * - Account Sign-Up with Lost Password - 15 hours
> * - Admin Tool: User Manager - 30 hours
> Admin Tool: Managing PDF Content - 30 hours
> Community Forums - 45 hours
> FAQ/Help Center Module - 35 hours
> Single Item Purchase - 15 hours
> Digital Asset Delivery - 30 hours
> * - Customer Internal: Simple Account Management (password, email) - 5
> hours
> Customer Internal: User Dashboard - 10 hours
> * - Customer Internal: Contact Form - 3 hours
> * - System Generated Emails - 15 hours
> Data Export Tools (Customer Data) - 12 hours
> Secure Storage/Delivery of PDFs - 5 hours
> Page/Form Builds - 20 hours
> U/X Development - 25 hours
> Slice Art / Build Templates - 25 hours
>
> Appreciate any advice you may have on how to approach this project
> effectively!
>
> Cheers from Tokyo,
>
> -Michael
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: AutoFields must have primary_key=True?

2012-04-16 Thread Marcin Tustin
I came up against this also. My work-around was to create a model that
exists explicitly for the purpose of generating sequential integers (I also
need them to be unique, so it's acceptable for my purposes). You might like
to have two fields to accomplish the same thing with duplicates (which I
admit is less than ideal).

On Mon, Apr 16, 2012 at 16:17, Roy Smith <r...@panix.com> wrote:

> I need an integer field which generates increasing integers.  But I don't
> want it to be my primary key.  In fact, it can't be, because I want the
> ability to manually reset it to something else.  The auto-increment is just
> a default value.
>
> If I do:
>
> > class Image(Model):
> > serial = AutoField()
>
> I get an error when I do syncdb or schemamigration:
>
> > AssertionError: AutoFields must have primary_key=True.
>
> Is this a bug?
>
> ---
> Roy Smith
> r...@panix.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Any tool to validate django templates?

2012-04-16 Thread Marcin Tustin
Thanks. Neither of those would help with my problem, which is that django
itself was refusing to parse my template.

My solution was to simply comment out regions, and re-instate them until
the error was once again detected.

On Mon, Apr 16, 2012 at 16:12, John Yeukhon Wong <gokoproj...@gmail.com>wrote:

> Would this help?
>
> http://stackoverflow.com/questions/3086637/how-should-i-validate-html-in-django-templates-during-the-development-process
>
> I quite like the not-accepted-as-answer. Just go through your urls.
> Essentially, you have two types of possible template errors:
>
> 1. human errors (missing a close tag / mispell)
> 2. logic error
>
> For logic error, you are dealing with mostly logic tags  such as url tags
> or custom tags rendering problem. For example, does your {% url my_view id
> username %} actually works? are the variables passing to / from view are
> good for these tags? THis kind of error is not possible checked with going
> through all urls because u can't test possibility like that. THat has to be
> handled by unit test and integration (system) test.
>
>
> Good luck.
>
> On Sunday, April 15, 2012 12:42:14 PM UTC-4, Marcin wrote:
>>
>> Hi all,
>>
>> I've got a template that isn't parsing, but the error is the nondescript:
>> **TemplateSyntaxError: Could not parse the remainder: '"{%' from '"{%'
>>
>> Is there a tool that can help locate the source of the error?
>>
>> Marcin
>>
>> --
>> Marcin Tustin
>> Tel: 07773 787 105
>>
>>   --
> 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/-/Ml-zdg0y4WEJ.
>
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

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



Any tool to validate django templates?

2012-04-15 Thread Marcin Tustin
Hi all,

I've got a template that isn't parsing, but the error is the
nondescript: TemplateSyntaxError: Could not parse the remainder: '"{%' from
'"{%'

Is there a tool that can help locate the source of the error?

Marcin

-- 
Marcin Tustin
Tel: 07773 787 105

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



Has anyone successfully used django-breadcrumbs?

2012-04-14 Thread Marcin Tustin
I have added django-breadcrumbs to my app, following the instructions at
https://github.com/chronossc/django-breadcrumbs/.

It works in so far as there is always exactly one breadcrumb displayed on
each page in my app, but never do more accumulate.

I'm about to try storing the list in the session, but is that how this is
supposed to be used?

-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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-13 Thread Marcin Tustin
I don't understand: you suggest that "adult" content is purely neutral, and
at the same time, you make a point of specifically warning about it. So,
which is it: something that no-one cares about, or something that carries a
stigma?

On Fri, Apr 13, 2012 at 15:56, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> On Fri, Apr 13, 2012 at 3:21 PM, Marcin Tustin <marcin.tus...@gmail.com>wrote:
>
>> As written, the most natural reading of your post is that a candidate
>> will be working on over 18 sites.
>
>
> Duly noted, I've updated the spec to use more precise wording "comfortable
> working on sites containing mature 18+ content"
>
>
>> Also, you want to pay people next to nothing to work on something that
>> they may hesitate to put on their CV. Nice.
>
>
> Are you suggesting that working on mature sites might be detrimental to
> ones career? And are you also suggesting that (for example) people who work
> on designing mens magazines (which also contain 18+ content) are only doing
> so because they are being paid enough money to keep it a secret? (your
> comments suggest that if the pay was higher, then the situation would be
> different..?)
>
> On a side note - there are many (well known) digital agencies that work
> with companies in the adult industry - and we've certainly never had
> problems retaining clients or securing contracts as a result of that.
>
>
>>
>>
>> On Fri, Apr 13, 2012 at 15:16, Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk> wrote:
>>
>>> Just saw your response about the 18+ adult sites.
>>>
>>> I think there may have been some confusion, 18+ sites refers to the fact
>>> some of our clients work in the adult industry and their sites content 18+
>>> mature content.
>>>
>>> Cal
>>>
>>>
>>> On Fri, Apr 13, 2012 at 1:02 PM, Gerald Klein <j...@zognet.com> wrote:
>>>
>>>> Hi, I apologize I didn't get your response till this morning, for
>>>> whatever reason I couldn't reply to the other email. ? Anyway I thought it
>>>> over and 18 sites is a lot of responsibility for that income, I must kindly
>>>> decline this offer thank you for your consideration.
>>>>
>>>> On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] <
>>>> cal.leem...@simplicitymedialtd.co.uk> 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] <
>>>>> cal.leem...@simplicitymedialtd.co.uk> 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' IR

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

2012-04-13 Thread Marcin Tustin
As written, the most natural reading of your post is that a candidate will
be working on over 18 sites. Also, you want to pay people next to nothing
to work on something that they may hesitate to put on their CV. Nice.

On Fri, Apr 13, 2012 at 15:16, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Just saw your response about the 18+ adult sites.
>
> I think there may have been some confusion, 18+ sites refers to the fact
> some of our clients work in the adult industry and their sites content 18+
> mature content.
>
> Cal
>
>
> On Fri, Apr 13, 2012 at 1:02 PM, Gerald Klein <j...@zognet.com> wrote:
>
>> Hi, I apologize I didn't get your response till this morning, for
>> whatever reason I couldn't reply to the other email. ? Anyway I thought it
>> over and 18 sites is a lot of responsibility for that income, I must kindly
>> decline this offer thank you for your consideration.
>>
>> On Thu, Apr 12, 2012 at 2:27 PM, Cal Leeming [Simplicity Media Ltd] <
>> cal.leem...@simplicitymedialtd.co.uk> 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] <
>>> cal.leem...@simplicitymedialtd.co.uk> 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, vis

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

2012-04-13 Thread Marcin Tustin
I guess junior dev rates have plummeted in the last 10 years.

On Fri, Apr 13, 2012 at 13:25, Tom Evans <tevans...@googlemail.com> wrote:

> On Fri, Apr 13, 2012 at 1:23 PM, Mario Gudelj <mario.gud...@gmail.com>
> wrote:
> > Is this anywhere near a standard rate in UK?
> >
>
> For a junior developer outside of London, yes. For a junior developer
> outside of London working remotely, definitely.
>
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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-10 Thread Marcin Tustin
I must say I'm surprised - the last time I had a job that paid at that
level was my very first tech job, straight after A-levels.

You don't need to apologise or explain to us - my post was more to observe
that this doesn't seem like something that will get you CVs urgently.

On Tue, Apr 10, 2012 at 22:00, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> Thanks for the feedback.
>
> Problem is - we do already have other full time developers on at
> 2000$/month (albeit for 130 hours, not 150), all of them with a varying
> skill set across both languages - and our clients also have in-house
> developers at roughly this same budget as well (both US and UK).
>
> Sometimes we get great paying rates (like the £250-500/day one I posted
> only a few weeks ago) for senior roles, but this role is considered junior
> and therefore has a much lower budget.
>
> Hope this makes sense.
>
> Cal
>
> On Tue, Apr 10, 2012 at 9:52 PM, Christophe Pettus <x...@thebuild.com>wrote:
>
>>
>> On Apr 10, 2012, at 1:31 PM, Cal Leeming [Simplicity Media Ltd] wrote:
>>
>> > * MUST be able to work 30+ hours a week.
>> >
>> [...]
>>
>> > The position is full time, offering around $2000/month (roughly
>> £1200/month) for the right candidate - price/hours are negotiable.
>>
>> Just to be clear, assuming that the job is 30 hours per week, you are
>> really offering $15.38 per hour?  That's roughly what a waiter in a
>> mid-range San Francisco  restaurant makes, with tips.  If that really is
>> your budget, you need to be looking at outsourcing companies, not a list
>> like this one.
>>
>> If that compensation was a typo, apologies!
>>
>> --
>> -- Christophe Pettus
>>   x...@thebuild.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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-10 Thread Marcin Tustin
You're urgently seeking a developer who will work fluently in two different
(server side) languages, and you're offering 14400 pounds? I wish you luck.

On Tue, Apr 10, 2012 at 21:31, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Migrating a database from Django 1.1/postgress to 1.3/MySQL

2012-04-10 Thread Marcin Tustin
syncdb has probably already created your content types.

I strongly suggest that you use the option --exclude contenttypes (and any
other app that is likely to create its own data during sync/migration).

On Tue, Apr 10, 2012 at 17:59, Roy Smith <r...@panix.com> wrote:

> I've got an old site running Django 1.1 with a postgress backend.  I'm
> moving it to Django 1.3, with MySQL.  I dumped all the old data with:
>
> $ python manage.py dumpdata --indent 2 > materia-dump.2012-04-06.json
>
> I created a brand new MySQL database and ran syncdb, then tried to import
> the data with
>
> $ python manage.py loaddata materia-dump.2012-04-06.json
>
> But I get complaints about duplicate keys:
>
> > Problem installing fixture '/home/roy/materia-dump.2012-04-06.json':
> Traceback (most recent call last):
> >   File
> "/usr/lib/pymodules/python2.6/django/core/management/commands/loaddata.py",
> line 174, in handle
> > obj.save(using=using)
> >   File "/usr/lib/pymodules/python2.6/django/core/serializers/base.py",
> line 165, in save
> > models.Model.save_base(self.object, using=using, raw=True)
> >   File "/usr/lib/pymodules/python2.6/django/db/models/base.py", line
> 526, in save_base
> > rows = manager.using(using).filter(pk=pk_val)._update(values)
> >   File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line
> 491, in _update
> > return query.get_compiler(self.db).execute_sql(None)
> >   File "/usr/lib/pymodules/python2.6/django/db/models/sql/compiler.py",
> line 869, in execute_sql
> > cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
> >   File "/usr/lib/pymodules/python2.6/django/db/models/sql/compiler.py",
> line 735, in execute_sql
> > cursor.execute(sql, params)
> >   File "/usr/lib/pymodules/python2.6/django/db/backends/util.py", line
> 34, in execute
> > return self.cursor.execute(sql, params)
> >   File "/usr/lib/pymodules/python2.6/django/db/backends/mysql/base.py",
> line 86, in execute
> > return self.cursor.execute(query, args)
> >   File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py", line 166, in
> execute
> > self.errorhandler(self, exc, value)
> >   File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 35,
> in defaulterrorhandler
> > raise errorclass, errorvalue
> > IntegrityError: (1062, "Duplicate entry 'photologue-gallery' for key
> 'app_label'")
>
>
> Looking at the json output, I don't see any duplicates.  I've got:
>
>  {
>"pk": 9,
>"model": "contenttypes.contenttype",
>"fields": {
>  "model": "gallery",
>  "name": "gallery",
>  "app_label": "photologue"
>}
>  },
>
> but that's the only entry for name = "gallery", app_label = "photologue".
>  Any idea what I'm doing wrong?
>
>
> ---
> Roy Smith
> r...@panix.com
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Hosting Django website

2012-04-08 Thread Marcin Tustin
This question is asked a lot on this list. Search the archives, and google
specialist django hosting.

On Sun, Apr 8, 2012 at 14:59, KasunLak <kasun.lakpriy...@gmail.com> wrote:

> Hi all,
>
> I have created a website using django. I want to host it now. Can you
> suggest me a best way to host it? I have noticed it is possible to
> host in tomcat on top of jython, is this recommended or have any
> issues?
>
> thanks in advance,
> Kasun
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: It's magic the view does not exist for django but it worked 5 secondes before and it still exist

2012-04-07 Thread Marcin Tustin
gt;>>> What does your urls.py look like?
>>>>>>>>
>>>>>>>> On Sat, Apr 7, 2012 at 15:27, Bussiere <bussi...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> i've got this error :
>>>>>>>>> ViewDoesNotExist at /invitation/
>>>>>>>>>
>>>>>>>>> Could not import jackpoint.invitation.views.**ind**ex. View does 
>>>>>>>>> not exist in module jackpoint.invitation.views.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> But yes it exist and worked fine 5 secondes before.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  the image of eclipse :
>>>>>>>>>
>>>>>>>>> http://dl.dropbox.com/u/**197533**32/wtf.png 
>>>>>>>>> <http://dl.dropbox.com/u/19753332/wtf.png>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> all the other view works well.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> And when i close and reopen firefox, all the views works fine and 
>>>>>>>>> that one appaeras 5 secondes freeze then say it doesn't exist.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> the view is here :
>>>>>>>>>
>>>>>>>>> https://github.com/bussiere/**ja**ckpoint/blob/master/**jackpoint/**jackpoint/**invitation/views.py
>>>>>>>>>  
>>>>>>>>> <https://github.com/bussiere/jackpoint/blob/master/jackpoint/jackpoint/invitation/views.py>
>>>>>>>>>   **
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> regards
>>>>>>>>>
>>>>>>>>> bussiere
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  --
>>>>>>>>> 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/**ms**g/django-users/-/**
>>>>>>>>> kiSWlzDrl28J<https://groups.google.com/d/msg/django-users/-/kiSWlzDrl28J>
>>>>>>>>> .
>>>>>>>>> To post to this group, send email to django-users@googlegroups.com
>>>>>>>>> .
>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>> django-users+unsubscribe@**googl**egroups.com<django-users%2bunsubscr...@googlegroups.com>
>>>>>>>>> .
>>>>>>>>> For more options, visit this group at http://groups.google.com/**
>>>>>>>>> group**/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>>>>>>>> .
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Marcin Tustin
>>>>>>>> Tel: 07773 787 105
>>>>>>>>
>>>>>>>>  --
>>>>>>> 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/-/**KZlOCBWleEMJ<https://groups.google.com/d/msg/django-users/-/KZlOCBWleEMJ>
>>>>>>> .
>>>>>>>
>>>>>>> To post to this group, send email to django-users@googlegroups.com.
>>>>>>> To unsubscribe from this group, send email to
>>>>>>> django-users+unsubscribe@**googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>>>>>>> .
>>>>>>> For more options, visit this group at http://groups.google.com/**
>>>>>>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>>>>>> .
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Marcin Tustin
>>>>>> Tel: 07773 787 105
>>>>>>
>>>>>>  --
>>>>> 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/*
>>>>> *ms**g/django-users/-/m-**QAVDODpUUJ<https://groups.google.com/d/msg/django-users/-/m-QAVDODpUUJ>
>>>>> .
>>>>>
>>>>> To post to this group, send email to django-users@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> django-users+unsubscribe@**googl**egroups.com<django-users%2bunsubscr...@googlegroups.com>
>>>>> .
>>>>> For more options, visit this group at http://groups.google.com/**group
>>>>> **/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>>>> .
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Marcin Tustin
>>>> Tel: 07773 787 105
>>>>
>>>>   --
>>> 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/-/**aBYKTLVIyRwJ<https://groups.google.com/d/msg/django-users/-/aBYKTLVIyRwJ>
>>> .
>>>
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users+unsubscribe@*
>>> *googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>> .
>>>
>>
>>
>>
>> --
>> Marcin Tustin
>> Tel: 07773 787 105
>>
>>  --
> 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/-/S7QOA9SmE2QJ.
>
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: It's magic the view does not exist for django but it worked 5 secondes before and it still exist

2012-04-07 Thread Marcin Tustin
;>>>>>>
>>>>>>>>> Could not import jackpoint.invitation.views.**ind**ex. View does 
>>>>>>>>> not exist in module jackpoint.invitation.views.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> But yes it exist and worked fine 5 secondes before.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  the image of eclipse :
>>>>>>>>>
>>>>>>>>> http://dl.dropbox.com/u/**197533**32/wtf.png 
>>>>>>>>> <http://dl.dropbox.com/u/19753332/wtf.png>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> all the other view works well.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> And when i close and reopen firefox, all the views works fine and 
>>>>>>>>> that one appaeras 5 secondes freeze then say it doesn't exist.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> the view is here :
>>>>>>>>>
>>>>>>>>> https://github.com/bussiere/**ja**ckpoint/blob/master/**jackpoint/**jackpoint/**invitation/views.py
>>>>>>>>>  
>>>>>>>>> <https://github.com/bussiere/jackpoint/blob/master/jackpoint/jackpoint/invitation/views.py>
>>>>>>>>>   **
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> regards
>>>>>>>>>
>>>>>>>>> bussiere
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  --
>>>>>>>>> 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/**ms**g/django-users/-/**
>>>>>>>>> kiSWlzDrl28J<https://groups.google.com/d/msg/django-users/-/kiSWlzDrl28J>
>>>>>>>>> .
>>>>>>>>> To post to this group, send email to django-users@googlegroups.com
>>>>>>>>> .
>>>>>>>>> To unsubscribe from this group, send email to
>>>>>>>>> django-users+unsubscribe@**googl**egroups.com<django-users%2bunsubscr...@googlegroups.com>
>>>>>>>>> .
>>>>>>>>> For more options, visit this group at http://groups.google.com/**
>>>>>>>>> group**/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>>>>>>>> .
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Marcin Tustin
>>>>>>>> Tel: 07773 787 105
>>>>>>>>
>>>>>>>>  --
>>>>>>> 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/-/**KZlOCBWleEMJ<https://groups.google.com/d/msg/django-users/-/KZlOCBWleEMJ>
>>>>>>> .
>>>>>>>
>>>>>>> To post to this group, send email to django-users@googlegroups.com.
>>>>>>> To unsubscribe from this group, send email to
>>>>>>> django-users+unsubscribe@**googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>>>>>>> .
>>>>>>> For more options, visit this group at http://groups.google.com/**
>>>>>>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>>>>>> .
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Marcin Tustin
>>>>>> Tel: 07773 787 105
>>>>>>
>>>>>>  --
>>>>> 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/*
>>>>> *ms**g/django-users/-/m-**QAVDODpUUJ<https://groups.google.com/d/msg/django-users/-/m-QAVDODpUUJ>
>>>>> .
>>>>>
>>>>> To post to this group, send email to django-users@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> django-users+unsubscribe@**googl**egroups.com<django-users%2bunsubscr...@googlegroups.com>
>>>>> .
>>>>> For more options, visit this group at http://groups.google.com/**group
>>>>> **/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>>>> .
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Marcin Tustin
>>>> Tel: 07773 787 105
>>>>
>>>>   --
>>> 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/-/**aBYKTLVIyRwJ<https://groups.google.com/d/msg/django-users/-/aBYKTLVIyRwJ>
>>> .
>>>
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users+unsubscribe@*
>>> *googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>> .
>>>
>>
>>
>>
>> --
>> Marcin Tustin
>> Tel: 07773 787 105
>>
>>  --
> 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/-/Ktw5D-B5byYJ.
>
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: It's magic the view does not exist for django but it worked 5 secondes before and it still exist

2012-04-07 Thread Marcin Tustin
So, you can import the function in the django shell? Have you considered
replacing the string-based import with a normal import?

On Sat, Apr 7, 2012 at 16:29, Bussiere <bussi...@gmail.com> wrote:

> Everything is fine.
>
> I said you it worked five second before ...
>
>
> Bussiere
>
> Le samedi 7 avril 2012 16:58:51 UTC+2, Marcin a écrit :
>
>> Reinstalling django will not help. Verify that the file is present and
>> has the correct permissions (likewise all superior directories, and also
>> the relevant __init__.py files. These files are essential.).
>>
>> You may also like to run the django shell, and try to import that module.
>> If that does not work, examine the sys.path setting to ensure that
>> jackpoint is on the path.
>>
>> On Sat, Apr 7, 2012 at 15:53, Bussiere <bussi...@gmail.com> wrote:
>>
>>> i've made no deploiement at all ...
>>>
>>> No views in invitation works.
>>>
>>>
>>> I was working on live with the test server runnning.
>>>
>>> (i've tried to restart it more than one time after i get this error).
>>>
>>> And by magic all the views in invitation don't works, they are not found.
>>>
>>> Maybe a reinstallation of django ?
>>>
>>> Have you any suggestion ?
>>>
>>> Bussiere
>>>
>>>
>>>
>>> Le samedi 7 avril 2012 16:42:09 UTC+2, Marcin a écrit :
>>>
>>>> Does  invitation/create_invitation **w**ork? If not, I suspect that
>>>> you have either some kind of configuration issue, or the file has gone
>>>> missing from your deployment/has wrong permissions set.
>>>>
>>>> On Sat, Apr 7, 2012 at 15:36, Bussiere <bussi...@gmail.com> wrote:
>>>>
>>>>> from django.conf.urls.defaults import patterns, include, url
>>>>>
>>>>> # Uncomment the next two lines to enable the admin:
>>>>> from django.contrib import admin
>>>>> admin.autodiscover()
>>>>>
>>>>> urlpatterns = patterns('',
>>>>> # Examples:
>>>>> # url(r'^$', 'Jackpoint.views.home', name='home'),
>>>>> # url(r'^Jackpoint/', include('Jackpoint.foo.urls')),
>>>>> url(r'^$', 'jackpoint.engine.views.index'),
>>>>> #url(r'^X/$', 'jackpoint.X.views.index'),
>>>>> url(r'^invitation/$', 'jackpoint.invitation.views.**in**dex'),
>>>>> # Uncomment the admin/doc line below to enable admin documentation:
>>>>> url(r'^admin/doc/', include('django.contrib.**admind**ocs.urls')),
>>>>>
>>>>> url(r'^invitation/create_**invit**ation/$',
>>>>> 'jackpoint.invitation.views.**cr**eate_invitation'),
>>>>> url(r'^invitation/inscription/$', 'jackpoint.invitation.views.
>>>>> **in**vitation_inscription'),
>>>>> url(r'^hand/$', 'jackpoint.hand.views.index'),
>>>>> url(r'^hand/ask/$', 'jackpoint.hand.views.ask'),
>>>>> # Uncomment the next line to enable the admin:
>>>>> url(r'^admin/', include(admin.site.urls)),
>>>>> )
>>>>>
>>>>>
>>>>> Le samedi 7 avril 2012 16:28:53 UTC+2, Marcin a écrit :
>>>>>
>>>>>> What does your urls.py look like?
>>>>>>
>>>>>> On Sat, Apr 7, 2012 at 15:27, Bussiere <bussi...@gmail.com> wrote:
>>>>>>
>>>>>>> i've got this error :
>>>>>>> ViewDoesNotExist at /invitation/
>>>>>>>
>>>>>>> Could not import jackpoint.invitation.views.**index. View does not 
>>>>>>> exist in module jackpoint.invitation.views.
>>>>>>>
>>>>>>>
>>>>>>> But yes it exist and worked fine 5 secondes before.
>>>>>>>
>>>>>>>
>>>>>>>  the image of eclipse :
>>>>>>>
>>>>>>> http://dl.dropbox.com/u/**19753332/wtf.png 
>>>>>>> <http://dl.dropbox.com/u/19753332/wtf.png>
>>>>>>>
>>>>>>>
>>>>>>> all the other view works well.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> And when i close and reopen firefox, all the views works fine and that 
>>>>>>> one appaeras 5 secondes freeze then say it doesn't exi

Re: It's magic the view does not exist for django but it worked 5 secondes before and it still exist

2012-04-07 Thread Marcin Tustin
Reinstalling django will not help. Verify that the file is present and has
the correct permissions (likewise all superior directories, and also the
relevant __init__.py files. These files are essential.).

You may also like to run the django shell, and try to import that module.
If that does not work, examine the sys.path setting to ensure that
jackpoint is on the path.

On Sat, Apr 7, 2012 at 15:53, Bussiere <bussi...@gmail.com> wrote:

> i've made no deploiement at all ...
>
> No views in invitation works.
>
>
> I was working on live with the test server runnning.
>
> (i've tried to restart it more than one time after i get this error).
>
> And by magic all the views in invitation don't works, they are not found.
>
> Maybe a reinstallation of django ?
>
> Have you any suggestion ?
>
> Bussiere
>
>
>
> Le samedi 7 avril 2012 16:42:09 UTC+2, Marcin a écrit :
>
>> Does  invitation/create_invitation **work? If not, I suspect that you
>> have either some kind of configuration issue, or the file has gone missing
>> from your deployment/has wrong permissions set.
>>
>> On Sat, Apr 7, 2012 at 15:36, Bussiere <bussi...@gmail.com> wrote:
>>
>>> from django.conf.urls.defaults import patterns, include, url
>>>
>>> # Uncomment the next two lines to enable the admin:
>>> from django.contrib import admin
>>> admin.autodiscover()
>>>
>>> urlpatterns = patterns('',
>>> # Examples:
>>> # url(r'^$', 'Jackpoint.views.home', name='home'),
>>> # url(r'^Jackpoint/', include('Jackpoint.foo.urls'))**,
>>> url(r'^$', 'jackpoint.engine.views.index'**),
>>> #url(r'^X/$', 'jackpoint.X.views.index'),
>>> url(r'^invitation/$', 'jackpoint.invitation.views.**index'),
>>> # Uncomment the admin/doc line below to enable admin documentation:
>>> url(r'^admin/doc/', include('django.contrib.**admindocs.urls')),
>>>
>>> url(r'^invitation/create_**invitation/$',
>>> 'jackpoint.invitation.views.**create_invitation'),
>>> url(r'^invitation/inscription/**$', 'jackpoint.invitation.views.**
>>> invitation_inscription'),
>>> url(r'^hand/$', 'jackpoint.hand.views.index'),
>>> url(r'^hand/ask/$', 'jackpoint.hand.views.ask'),
>>> # Uncomment the next line to enable the admin:
>>> url(r'^admin/', include(admin.site.urls)),
>>> )
>>>
>>>
>>> Le samedi 7 avril 2012 16:28:53 UTC+2, Marcin a écrit :
>>>
>>>> What does your urls.py look like?
>>>>
>>>> On Sat, Apr 7, 2012 at 15:27, Bussiere <bussi...@gmail.com> wrote:
>>>>
>>>>> i've got this error :
>>>>> ViewDoesNotExist at /invitation/
>>>>>
>>>>> Could not import jackpoint.invitation.views.**ind**ex. View does not 
>>>>> exist in module jackpoint.invitation.views.
>>>>>
>>>>>
>>>>> But yes it exist and worked fine 5 secondes before.
>>>>>
>>>>>
>>>>> the image of eclipse :
>>>>>
>>>>> http://dl.dropbox.com/u/**197533**32/wtf.png 
>>>>> <http://dl.dropbox.com/u/19753332/wtf.png>
>>>>>
>>>>>
>>>>> all the other view works well.
>>>>>
>>>>>
>>>>>
>>>>> And when i close and reopen firefox, all the views works fine and that 
>>>>> one appaeras 5 secondes freeze then say it doesn't exist.
>>>>>
>>>>>
>>>>> the view is here :
>>>>>
>>>>> https://github.com/bussiere/**ja**ckpoint/blob/master/**jackpoint/**jackpoint/**invitation/views.py
>>>>>  
>>>>> <https://github.com/bussiere/jackpoint/blob/master/jackpoint/jackpoint/invitation/views.py>
>>>>>   **
>>>>>
>>>>>
>>>>> regards
>>>>>
>>>>> bussiere
>>>>>
>>>>>
>>>>>
>>>>>  --
>>>>> 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/*
>>>>> *ms**g/django-users/-/**kiSWlzDrl28J<https://groups.google.com/d/msg/django-users/-/kiSWlzDrl28J>
>>>>> .
>>>>> To post to this group, send email to django-users@googlegroups.com.
>>>>> To unsubscribe from this gr

Re: It's magic the view does not exist for django but it worked 5 secondes before and it still exist

2012-04-07 Thread Marcin Tustin
Does  invitation/create_invitation work? If not, I suspect that you have
either some kind of configuration issue, or the file has gone missing from
your deployment/has wrong permissions set.

On Sat, Apr 7, 2012 at 15:36, Bussiere <bussi...@gmail.com> wrote:

> from django.conf.urls.defaults import patterns, include, url
>
> # Uncomment the next two lines to enable the admin:
> from django.contrib import admin
> admin.autodiscover()
>
> urlpatterns = patterns('',
> # Examples:
> # url(r'^$', 'Jackpoint.views.home', name='home'),
> # url(r'^Jackpoint/', include('Jackpoint.foo.urls')),
> url(r'^$', 'jackpoint.engine.views.index'),
> #url(r'^X/$', 'jackpoint.X.views.index'),
> url(r'^invitation/$', 'jackpoint.invitation.views.index'),
> # Uncomment the admin/doc line below to enable admin documentation:
> url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
> url(r'^invitation/create_invitation/$',
> 'jackpoint.invitation.views.create_invitation'),
> url(r'^invitation/inscription/$',
> 'jackpoint.invitation.views.invitation_inscription'),
> url(r'^hand/$', 'jackpoint.hand.views.index'),
> url(r'^hand/ask/$', 'jackpoint.hand.views.ask'),
> # Uncomment the next line to enable the admin:
> url(r'^admin/', include(admin.site.urls)),
> )
>
>
> Le samedi 7 avril 2012 16:28:53 UTC+2, Marcin a écrit :
>
>> What does your urls.py look like?
>>
>> On Sat, Apr 7, 2012 at 15:27, Bussiere <bussi...@gmail.com> wrote:
>>
>>> i've got this error :
>>> ViewDoesNotExist at /invitation/
>>>
>>> Could not import jackpoint.invitation.views.**index. View does not exist in 
>>> module jackpoint.invitation.views.
>>>
>>>
>>> But yes it exist and worked fine 5 secondes before.
>>>
>>>
>>> the image of eclipse :
>>>
>>> http://dl.dropbox.com/u/**19753332/wtf.png 
>>> <http://dl.dropbox.com/u/19753332/wtf.png>
>>>
>>>
>>> all the other view works well.
>>>
>>>
>>>
>>> And when i close and reopen firefox, all the views works fine and that one 
>>> appaeras 5 secondes freeze then say it doesn't exist.
>>>
>>>
>>> the view is here :
>>>
>>> https://github.com/bussiere/**jackpoint/blob/master/**jackpoint/jackpoint/**invitation/views.py
>>>  
>>> <https://github.com/bussiere/jackpoint/blob/master/jackpoint/jackpoint/invitation/views.py>
>>>
>>>
>>> regards
>>>
>>> bussiere
>>>
>>>
>>>
>>>  --
>>> 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/-/**kiSWlzDrl28J<https://groups.google.com/d/msg/django-users/-/kiSWlzDrl28J>
>>> .
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users+unsubscribe@*
>>> *googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>>> .
>>>
>>
>>
>>
>> --
>> Marcin Tustin
>> Tel: 07773 787 105
>>
>>  --
> 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/-/KZlOCBWleEMJ.
>
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: It's magic the view does not exist for django but it worked 5 secondes before and it still exist

2012-04-07 Thread Marcin Tustin
What does your urls.py look like?

On Sat, Apr 7, 2012 at 15:27, Bussiere <bussi...@gmail.com> wrote:

> i've got this error :
> ViewDoesNotExist at /invitation/
>
> Could not import jackpoint.invitation.views.index. View does not exist in 
> module jackpoint.invitation.views.
>
>
> But yes it exist and worked fine 5 secondes before.
>
>
> the image of eclipse :
>
> http://dl.dropbox.com/u/19753332/wtf.png
>
>
> all the other view works well.
>
>
>
> And when i close and reopen firefox, all the views works fine and that one 
> appaeras 5 secondes freeze then say it doesn't exist.
>
>
> the view is here :
>
> https://github.com/bussiere/jackpoint/blob/master/jackpoint/jackpoint/invitation/views.py
>
>
> regards
>
> bussiere
>
>
>
>  --
> 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/-/kiSWlzDrl28J.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Port Django to Javascript

2012-04-05 Thread Marcin Tustin
What's the motivation for this project? Who (especially already being
familiar with python and django) would want to use this, and for what?

On Thu, Apr 5, 2012 at 07:22, DvD <birrafond...@gmail.com> wrote:

> Hi folks,
> I created a project not long ago and I'm currently maintaining it called
> Broke which wants to be a porting to Javascript of Django
> https://github.com/brokenseal/broke-client
> You can find it featured inside the todomvc project from addy osmani
> https://github.com/addyosmani/todomvc (
> https://github.com/brokenseal/todomvc for the latest updates from broke )
>
> I think the project itself has a lot of potential but lacks two very
> important things: a real documentation and a community.
> I'm writing to you all to see if anyone could be interested in taking part
> to this project.
> Broke currently features a lot of cool stuff such as:
>  - pythonic classes and models: write stuff like
>
> models.Model.create({
> __name__: "todo.models.Task"
> ,title: models.CharField({ max_length: 200 })
> ,is_complete: models.BooleanField({ 'default': false })
> ,update: function(kwargs){
> if('is_complete' in kwargs && kwargs['is_complete']) {
> this.elements().addClass('done');
> } else if('is_complete' in kwargs && !kwargs['is_complete']) {
> this.elements().removeClass('done');
> }
>
> return this._super(kwargs);
> }
> });
>
>  - django templating: you can basically reuse the same templates you are
> currently using server side, with some limitations ( the only supported
> tags are if-else, for cycles, ifequal, comment )
>  - database routing: you can choose to save your object on any data source
> you want ( local storage, remote server, a local json object )
>
> Have a look at the code base and let me know what you think.
> Anyone? :)
>
> Cheers,
> Davide
>
> --
> 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/-/nXspKySFAhQJ.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: where do you host your django app and how to you deploy it?!

2012-04-04 Thread Marcin Tustin
I have to say that switching to gunicorn from apache+mod_wsgi has made my
site noticeably faster, and uses less memory. I would avoid apache for WSGI
apps where the choice exists.

On Wed, Apr 4, 2012 at 16:24, Daniel Sokolowski <
daniel.sokolow...@klinsight.com> wrote:

> I would use Linode VPS. Used WebFaction before however I quickly run
> into a wall where server was running out of resources when attempting
> to run 3-4 django sites from one account --- so skip the training
> wheels and go VPS.
>
> Linode has an unbeatable help center - http://library.linode.com/ and
> great customer service. Use this link please if you do sign up with
> them, I'll get a small kick back :)
> http://www.linode.com/?r=7d884fa5262b62b8735502da003fee34061db49b
>
> Be VERY careful of other VPS providers as not all are equal - you pay
> for what you get. Linode runs on XEN virtualization (very close to
> hardware) in which for one you can create a swap space. Burst.net
> which we also tried runs on OpenVZ (a super chroot like enviroment)
> does not allow swap space; this means you sites will be killed if it
> exceeds you memory limits, unacceptable and too unpredictable.
>
> Also I would strongly suggest stick to a simple setup, Sqlite3 +
> Apache (on instance both for django and static serving). In my
> experience majority of sites will be happy with that site and you will
> KNOW when you need to a more complex setup. Sqlite3 is solid for read
> operations, and only starts choking on a large parallel write
> requests, Apache is tried and true and just works, NGINX sounds great
> but why complicate things for some therotical speed gains; most your
> bottle necks will be in your code not the server. There is only one
> project that I have considered using something else the Sqlite3  with
> over 600 active users; over the 2 years the site did not once generate
> a Sqlite3 write time out error or performed poorly. Lastly Sqlite3
> makes it is a zip to copy from development server to live server since
> the database is a file.
>
> Our development is a mirror copy of the live server. So deployment is
> a matter of copying the site to live server and switching to live
> mode; also all of the projects are as self contained as possible with
> PIP, keeping settings files and raw media files with project folder.
>
> Sample apache conf and wsgi files - http://dpaste.com/726790/,
> http://dpaste.com/726792/.
>
> Daniel Sokolowski
> webdesign.danols.com
>
>
>
> On Apr 2, 6:48 am, fix3d <aleksandre...@gmail.com> wrote:
> > Where do you host your django app and how to you deploy it?!
> >
> > Please share personal exp.
>
> --
> 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.
>
>


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: where do you host your django app and how to you deploy it?!

2012-04-02 Thread Marcin Tustin
Webfaction: service people are eager to help, but I had to re-install and
configure everything myself. They are (as far as I can tell) the cheapest
reputable option with EEA datacenters.

On Mon, Apr 2, 2012 at 11:53, Sandro Dutra <hexo...@gmail.com> wrote:

> Webfaction,
>
> Excelente support, service it's up to date, well documented and good
> price. deployment made with WSGI.
>
>
> 2012/4/2 fix3d <aleksandre...@gmail.com>
>
>> Where do you host your django app and how to you deploy it?!
>>
>> Please share personal exp.
>>
>> --
>> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

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



How to debug transaction management errors?

2012-03-30 Thread Marcin Tustin
I have a view which is causing the error that follows. I understand what it
means, but I am *certain* there is no way that my code should be causing
this error (Every single return is prefaced with either
transaction.commit() or transaction.rollback()).

Is there a good way to debug this error?

2012-03-30 12:37:11,163 ERROR Internal Server Error: /incorporate/
Traceback (most recent call last):
  File
"/home/marcintustin/webapps/django/oneclickcosvirt/lib/python2.7/site-packages/django/core/handlers/base.py",
line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
  File
"/home/marcintustin/webapps/django/oneclickcosvirt/oneclickcos/mainapp/decorators.py",
line 26, in _wrapped_view
return view_func(request, *args, **kwargs)
  File
"/home/marcintustin/webapps/django/oneclickcosvirt/lib/python2.7/site-packages/django/db/transaction.py",
line 209, in inner
return func(*args, **kwargs)
  File
"/home/marcintustin/webapps/django/oneclickcosvirt/lib/python2.7/site-packages/django/db/transaction.py",
line 203, in __exit__
self.exiting(exc_value, self.using)
  File
"/home/marcintustin/webapps/django/oneclickcosvirt/lib/python2.7/site-packages/django/db/transaction.py",
line 288, in exiting
leave_transaction_management(using=using)
  File
"/home/marcintustin/webapps/django/oneclickcosvirt/lib/python2.7/site-packages/django/db/transaction.py",
line 52, in leave_transaction_management
connection.leave_transaction_management()
  File
"/home/marcintustin/webapps/django/oneclickcosvirt/lib/python2.7/site-packages/django/db/backends/__init__.py",
line 119, in leave_transaction_management
raise TransactionManagementError("Transaction managed block ended with "
TransactionManagementError: Transaction managed block ended with pending
COMMIT/ROLLBACK


-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Bug in BaseForm?

2012-03-28 Thread Marcin Tustin
Ah, no I hadn't, which is the problem here. Thanks for your help!

On Wed, Mar 28, 2012 at 15:51, Xavier Ordoquy <xordo...@linovia.com> wrote:

> Hi,
>
> Have you called is_valid() on the form before that ?
>
> Regards,
> Xavier Ordoquy,
> Linovia.
>
> Le 28 mars 2012 à 15:57, Marcin a écrit :
>
> Consider the following stack trace (all relevant code is shown in the
> stack trace):
>
> In [3]: f.clean()
> ---
> AttributeErrorTraceback (most recent call last)
> C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\django\core\management\commands\shell.pyc
> in ()
> > 1 f.clean()
>
> C:\Users\Marcin\Documents\oneclickcos\oneclickcos\mainapp\incorporate_helpers.pyc
> in clean(self)
> 569 This checks the relations between fields, ensures
> consistent state, and exports bits about the state of the form that can be
> used in subsequent
> validations
> 570 """
> --> 571 cleaned_data = super(IncorporateForm, self).clean()
> 572 #logger.debug('IncorporationForm.cleaned_data: ' +
> str(cleaned_data))
>
> 573 try:
>
> C:\Users\Marcin\Documents\oneclickcos\oneclickcos\mainapp\incorporate_helpers.pyc
> in clean(self)
> 402
> 403 def clean(self):
> --> 404 cleaned_data = super(CreateForm, self).clean()
> 405 # trying to use an empty pk can result in a ValueError.
> Easier to expunge.
>
> 406 if cleaned_data.get('pk', None) == '': del
> cleaned_data['pk']
>
> C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\django\forms\forms.pyc
> in clean(self)
> 315 association with the field named '__all__'.
> 316 """
> --> 317 return self.cleaned_data
> 318
> 319 def has_changed(self):
>
> AttributeError: 'IncorporateForm' object has no attribute 'cleaned_data'
>
> As you can see, my code conforms to the examples at
> https://docs.djangoproject.com/en/1.4/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other
> .
>
> However, the error comes from BaseForm's clean method, which expects a
> cleaned_data property or attribute to exist. What gives? Is this a bug in
> django?
>
> --
> 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/-/_yqLTmCFK4MJ.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

-- 
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: Bug in BaseForm?

2012-03-28 Thread Marcin Tustin
It has been pointed out to me that this error does not occur if one calls
is_valid().

On Wed, Mar 28, 2012 at 14:57, Marcin <marcin.tus...@gmail.com> wrote:

> Consider the following stack trace (all relevant code is shown in the
> stack trace):
>
> In [3]: f.clean()
> ---
> AttributeErrorTraceback (most recent call last)
> C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\django\core\management\commands\shell.pyc
> in ()
> > 1 f.clean()
>
> C:\Users\Marcin\Documents\oneclickcos\oneclickcos\mainapp\incorporate_helpers.pyc
> in clean(self)
> 569 This checks the relations between fields, ensures
> consistent state, and exports bits about the state of the form that can be
> used in subsequent
> validations
> 570 """
> --> 571 cleaned_data = super(IncorporateForm, self).clean()
> 572 #logger.debug('IncorporationForm.cleaned_data: ' +
> str(cleaned_data))
>
> 573 try:
>
> C:\Users\Marcin\Documents\oneclickcos\oneclickcos\mainapp\incorporate_helpers.pyc
> in clean(self)
> 402
> 403 def clean(self):
> --> 404 cleaned_data = super(CreateForm, self).clean()
> 405 # trying to use an empty pk can result in a ValueError.
> Easier to expunge.
>
> 406 if cleaned_data.get('pk', None) == '': del
> cleaned_data['pk']
>
> C:\Users\Marcin\Documents\oneclickcos\lib\site-packages\django\forms\forms.pyc
> in clean(self)
> 315 association with the field named '__all__'.
> 316 """
> --> 317 return self.cleaned_data
> 318
> 319 def has_changed(self):
>
> AttributeError: 'IncorporateForm' object has no attribute 'cleaned_data'
>
> As you can see, my code conforms to the examples at
> https://docs.djangoproject.com/en/1.4/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other
> .
>
> However, the error comes from BaseForm's clean method, which expects a
> cleaned_data property or attribute to exist. What gives? Is this a bug in
> django?
>
> --
> 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/-/_yqLTmCFK4MJ.
> 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.
>



-- 
Marcin Tustin
Tel: 07773 787 105

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