Re: satchmo and django-admin-tools

2012-07-16 Thread Avraham Serour
I thought they extended the templates instead of trying to replace
everything

do you know which templates would I have to redefine? everything I find in
both?

On Mon, Jul 16, 2012 at 6:09 PM, Tomas Neme  wrote:

> Yes, you'll need to get your hands dirty, and merge the two admin
> templates, since both apps redefine templates/admin/index.html and
> some other templates.
>
> The best approach, I think, is just use django-admin-tools' templates
> and create custom dashboard/modules to duplicate satchmo's templates'
> behavior
>
> On Sun, Jul 15, 2012 at 7:12 PM, אברהם סרור  wrote:
> > Hi,
> >
> > I'm trying to use django admin tools with satchmo, I installed satchmo
> in my
> > dev machine and made a store with clonesatchmo.py
> > after that the store seemed to be running fine, so I installed
> > django-admin-tools using the instructions on their website
> >
> > but I didn't manage to make it work, I spent about a week googling, I
> think
> > I must be doing some obvious mistake
> >
> > anyone had success using both together? where can I see an example
> > settings.py?
> >
> > Also I have in mind grappelli, can the three work together?
> >
> > any help is appreciated
> > 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/-/PyVTP5tNkqMJ.
> > 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.
>
>
>
> --
> "The whole of Japan is pure invention. There is no such country, there
> are no such people" --Oscar Wilde
>
> |_|0|_|
> |_|_|0|
> |0|0|0|
>
> (\__/)
> (='.'=)This is Bunny. Copy and paste bunny
> (")_(") to help him gain world domination.
>
> --
> 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: Excluding items from a queryset

2012-07-16 Thread Avraham Serour
isn't it possible to define this in the query? to return only non empty
categories? or return categories where it has more than 1 member?

On Mon, Jul 16, 2012 at 2:38 PM, Sithembewena Lloyd Dube
wrote:

> Hi everyone,
>
> I have a queryset of categories and would like to exclude categories with
> no items associated. I am cycling through the queryset as follows, without
> the desired result:
>
> for cat in categories:
> if cat.item_set.count() == 0:
> categories.exclude(pk=cat.pk)
>
> How can I remove those categories (please note, I do not intend to delete
> them)?
>
> Thanks.
> --
> Regards,
> Sithembewena Lloyd Dube
>
> --
> 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: satchmo and django-admin-tools

2012-07-16 Thread Avraham Serour
thanks for sharing, I'll try to understand it.

where should I put this file? inside localsite?

what admin template are you talking about? the admin tools or the plain
admin?

I thought of using the admin tools templates and building from that, but
all I got was noReverseMatch erros, looks like the INSTALLED_APPS order is
significative and I don't understand it well.

how can I configure it to ignore the satchmo admin templates?

btw, could I make all this work with grappelli? it seems I could enjoy some
of the image uploading and wysiwyg editor

thanks
avraham

On Mon, Jul 16, 2012 at 10:33 PM, Tomas Neme  wrote:

> > I thought they extended the templates instead of trying to replace
> > everything
>
> they don't replace everything. But the admin site's index template is
> called 'admin/index.html', so it's not easy to extend them. They DO
> extend admin/base.html.
>
>
> This is my dashboard.py file, where I create a module that emulates
> satchmo's template additions.
>
> https://gist.github.com/3124534
>
> There's a couple of things that are MY PREFERENCES, so it might not
> all be to your liking, please do try to read, understand, and modify
> as you like.
>
> with this, I just use dashboards' admin/index.html template
>
> --
> "The whole of Japan is pure invention. There is no such country, there
> are no such people" --Oscar Wilde
>
> |_|0|_|
> |_|_|0|
> |0|0|0|
>
> (\__/)
> (='.'=)This is Bunny. Copy and paste bunny
> (")_(") to help him gain world domination.
>
> --
> 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: I can not install Django on Windows7

2012-07-18 Thread Avraham Serour
try using pip:

pip install django

On Wed, Jul 18, 2012 at 3:50 PM, Владислав Иванов wrote:

> when I run the installation of Django python setup.py install - comes at
> the end of an error that can not be put Django in C: \ Python27 \ Lib \
> site-packages
>
> --
> 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/-/YwCQJXpOeV8J.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django performance (cpython vs pypy)

2012-10-04 Thread Avraham Serour
impressive gain when using pypy, still django seems to have the slowest
template engine
it would be interesting to see memory usage also, not only speed
btw does anyone uses pypy in production yet? care to share some thoughts?


On Thu, Oct 4, 2012 at 10:02 AM, Moonlight wrote:

> It is interesting to see how django performance is improved by Pypy 1.9
> (vs CPython 2.7) in web 
> framework
>  and template 
> engine
>  benchmarks.
>
>

-- 
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: Translation outside the broswer

2012-10-05 Thread Avraham Serour
I believe that when you detect the language you could store in the user
profile the selected language (either it was automatic or manual), when
sending your email just check that

On Fri, Oct 5, 2012 at 11:12 AM, Bastian  wrote:

> Hi,
>
> I understand quite well how translations and i18n work inside a browser
> for Django but I'm not sure about the correct way to do it outside a
> browser. I mean when sending a mail or a tweet. What should I use to get
> the language of the user that is going to receive the mail or in case of a
> tweet the language of the user that I will send it on behalf of. And then
> how do I ask Django to translate that?
> I could not find it in the docs, if it exists please point me to it.
>
> Cheers
>
> --
> 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/-/ikoUTSyxuykJ.
> 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: Best practices for open sourcing a Django project?

2012-10-14 Thread Avraham Serour
I think you should include the config file, but with example parameters and
comments, point out in the readme that there are some basic configuration
to be done

On Sun, Oct 14, 2012 at 9:59 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:

> You could just include the necessary info in the README, or make a wrapper
> script that does it for them - although I tend to stick with READMEs where
> possible as they consume less time.
>
> If the code is coming straight out of production, there's a few tips I'd
> recommended;
>
> * Ensure that you test the code outside of the production environment
> against a test project, and make sure it works as expected.
> * Triple check that you haven't left any private info in the code
> * Provide a (reasonable) amount of documentation
>
> Personally, I tend to opt for this license;
> http://en.wikipedia.org/wiki/WTFPL
>
> There are many places you can put your code (GitHub, my most favourite),
> and others such as BitBucket and Google Code - again it's down to personal
> preference.
>
> Here is an example of a project I open sourced a while back... at the time
> I thought it was done well, but I later realised it needed a serious amount
> of re-writing and documentation - which I still haven't got around to doing;
> https://github.com/foxx/django-cutemodel
>
> Others may be able to offer a bit more advice, but the above is a head
> start at least!
>
> Hope this helps!
>
> Cal
>
> On Sun, Oct 14, 2012 at 8:47 PM, Joshua Russo wrote:
>
>> I have project that I have been working and I was contemplating open
>> sourcing it but I ran into a little hang up. How to handle the database
>> authentication. The settings file obviously needs to be included but I
>> don't want to advertise the production database login. How is this
>> generally handled?
>>
>> Also, are there procedures that need to be followed to "properly" open
>> source a project, or is it really just choosing a licence and dubbing it so?
>>
>> --
>> 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/-/LJU31pYrcXgJ.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django Troubleshooting

2012-10-19 Thread Avraham Serour
you should use pip to install, why are you installing from source?
if you are worried about filling your python installation with lots of
stuff you should use virtualenv

On Fri, Oct 19, 2012 at 6:15 AM, Lachlan Musicman  wrote:

> On Fri, Oct 19, 2012 at 4:07 PM, Sun Simon  wrote:
> > https://www.djangoproject.com/download/
> >
> > I am installing Django for Python on Win XP and came across this problem
> > during installation:
> >
> >
> > tar xzvf Django-1.4.2.tar.gz
> > cd Django-1.4.2
> > sudo python setup.py install
> >
> >
> > What does "cd" mean? DOes it mean that I have to use command line to type
> > it?
>
> Yes, those are linux commands - you need to be in the directory.
>
> I've not installed on Windows, but sudo wont work either, FYI. Run the
> cmd as administrator and you wouldn't need it
>
> Cheers
> L.
>
>
> >
> >
> > --
> > 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/-/RmTilhDq4WIJ.
> > 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.
>
>
>
> --
> ...we look at the present day through a rear-view mirror. This is
> something Marshall McLuhan said back in the Sixties, when the world
> was in the grip of authentic-seeming future narratives. He said, “We
> look at the present through a rear-view mirror. We march backwards
> into the future.”
>
> http://www.warrenellis.com/?p=14314
>
> --
> 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: Bulk db insert with a file through admin form

2012-12-04 Thread Avraham Serour
I also have a case where I would need to bulk add items from a file, the
client receives an excel file with products (up to a couple of hundreds).
I still haven't implemented nothing yet as the feature doesn't
have priority, in any case I thought adding a file upload option on the
admin, or maybe a bulk add option in manage would make more sense.

in any case I don't think it would be the case of changing your model as
you don't need to store this info (the file name).

in any case I believe you would need to add something custom, maybe someone
has some kind of template code for bulk adding from file, I believe this
could be fairly common.

any thoughts? please update on the path you took.

best luck
avraham


On Tue, Dec 4, 2012 at 5:32 AM, MNG1138  wrote:

> Say I've got a model like this:
>
> class Product(models.Model):
>
> name = models.CharField(max_length=**200)
>
> class ProductItem(models.Model):
>  product = models.ForeignKey(Product)
>  serialnumber = models.charField()
>  sold = models.BooleanField(default=False)
>
> ProductItem represents physical products in the store.  I have a file with
> thousands of serial #'s for the product.  In the product form in the admin,
> I'd like to upload this file, parse the serial #'s and create rows in
> ProductItem.  I could add a FileField to Product and create a custom
> storage that parses the file and creates ProductITems.  Or I could override
> save for the Product model.  Both of these solutions are non-optimal, as I
> will have a FileField in Product and db that I don't need.
>
> Is there any way to add a 'dummy' FileField just for the form that doesn't
> result in a DB row?  Or is the answer to create a custom admin form?  Any
> good tutorials or examples for doing creating a custom admin form?
>
> Thanks,
> Mark
>
>
>
>  --
> 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/-/efDj8ZO4QXIJ.
> 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: problem with timeout

2012-12-17 Thread Avraham Serour
you could optimize the database (creating indexes, putting in memory, using
a ssd etc)
you can run the process in backgorund


On Mon, Dec 17, 2012 at 1:34 PM, Szabo, Patrick (LNG-VIE) <
patrick.sz...@lexisnexis.at> wrote:

> Hi,
>
> I have an operation that takes about 10 minutes to befinished. It takes
> that long because our DB is pretty big.
> This produces a timeout.
>
> I have tried so set the timeout in apache higher but it seems that apache
> is not taking this directivejust keeps timing out after 300 seconds.
>
> Is there anything I can to to overcome this within my app ?
>
> The exception says that a connections was aborted by the software oft he
> hostcomputer (translated from german): core_output_filter: writing data to
> the network
>
> This is how i get the entries:
>
> Datum being a Date and int(str(datestring).split('-')[0]) delivering a
> year like 2012
>
> Buchung.objects.filter(Datum__year = int(str(datestring).split('-')[0]))
>
>
> Help would be much appreciated.
>
>
>
> . . . . . . . . . . . . . . . . . . . . . . . . . .
> Ing. Patrick Szabo
> Developer
> LexisNexis
> A-1030 Wien, Marxergasse 25
>
> mailto:patrick.sz...@lexisnexis.at
> Tel.: +43 1 53452 1573
> Fax.: +43 1 534 52 146
>
> . . . . . . . . . . . . . . . . . . . . . . . . . .
>
> --
> 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: Append [RESOLVED] to your post subject if you got to a working solution

2012-12-25 Thread Avraham Serour
I oppose adding [RESOLVED] to the subject, this means changing the subject
to a complete different string and detaching it from the thread. not sure
how this would work for google groups, but many people (me included) read
on gmail, it happened to me not long ago (can't remember which mailing list
it was), someone added a {RESOLVED] at the end of the subject, meaning I
got an email detached from the discussion.

if someone would post a message after they got a solution they could just
add RESOLVED to the first line of the body and then post their conclusions
on how they got there. problem is that often people go silence when they
achieved the solution.

also take in consideration that some posts are discussions like this one,
not answers to a specific problem.

avraham


On Tue, Dec 25, 2012 at 8:20 AM, Ryan Blunden wrote:

> Hi everyone,
>
> After this very revealing 
> post,
> I want to do what I can to support new people coming to Django.
>
> Like many Django developers and supporters, I'm busy and so to make it as
> easy as possible to provide support in this forum, it would be great if you
> could *append [RESOLVED] to your post subject if you got to a working
> solution.*
> *
> *
> This allows me and others to quickly scan the discussion list to see what
> needs attention.
>
> Perhaps there is a better system I'm not aware of? Whatever it is, I just
> want to be able to provide help to those that need it in the most time
> efficient way possible.
>
> Cheers,
> Ryan
>
> --
> 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/-/v2w_elHfeL8J.
> 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: Append [RESOLVED] to your post subject if you got to a working solution

2012-12-25 Thread Avraham Serour
like I said, one could post "RESOLVED" on the first line on a conclusion
post, this way it would pop up on search results.
it is not an ideal solution like having it in the subject like forums use
these days but it is the workaround that comes to my mind. my hope is that
other people can give their input on this, I'm sure someone out there can
come up with a better way


On Tue, Dec 25, 2012 at 9:43 PM, Ryan Blunden wrote:

> True, it will break the thread if reading via email only.
>
> Can you propose another way that when going to the groups posts page, you
> can scan and see which topics require further assistance?
>
> That is the problem I'm trying to solve.
>
>
> On Tuesday, December 25, 2012 12:51:48 AM UTC-8, אברהם סרור wrote:
>
>> I oppose adding [RESOLVED] to the subject, this means changing the
>> subject to a complete different string and detaching it from the thread.
>> not sure how this would work for google groups, but many people (me
>> included) read on gmail, it happened to me not long ago (can't remember
>> which mailing list it was), someone added a {RESOLVED] at the end of the
>> subject, meaning I got an email detached from the discussion.
>>
>> if someone would post a message after they got a solution they could just
>> add RESOLVED to the first line of the body and then post their conclusions
>> on how they got there. problem is that often people go silence when they
>> achieved the solution.
>>
>> also take in consideration that some posts are discussions like this one,
>> not answers to a specific problem.
>>
>> avraham
>>
>>
>> On Tue, Dec 25, 2012 at 8:20 AM, Ryan Blunden wrote:
>>
>>> Hi everyone,
>>>
>>> After this very revealing 
>>> post,
>>> I want to do what I can to support new people coming to Django.
>>>
>>> Like many Django developers and supporters, I'm busy and so to make it
>>> as easy as possible to provide support in this forum, it would be great if
>>> you could *append [RESOLVED] to your post subject if you got to a
>>> working solution.*
>>> *
>>> *
>>> This allows me and others to quickly scan the discussion list to see
>>> what needs attention.
>>>
>>> Perhaps there is a better system I'm not aware of? Whatever it is, I
>>> just want to be able to provide help to those that need it in the most time
>>> efficient way possible.
>>>
>>> Cheers,
>>> Ryan
>>>
>>> --
>>> 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/-/v2w_**elHfeL8J
>>> .
>>> 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
>>> .
>>>
>>
>>  --
> 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/-/Vs-XR4tF3G0J.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django 1.4 Development Workflow Using Static Files

2012-12-25 Thread Avraham Serour
Maybe you can just upload the files directly to the collect static folder
on the server

In any case maybe you want them under version control, so I guess you could
just automate all these steps with fabric
On Dec 26, 2012 1:00 AM, "huw_at1"  wrote:

> Hi again,
>
> Another quick question. I'm still getting used to 1.4 and I've been
> setting up a remote static file service for the production deployment of my
> web app. This works just great however it seems a little cumbersome when
> developing if I want to add fresh image content I have to add it to the
> project locally, commit and push the changes, deploy to production and
> collect the static files there before the image is available to the
> development server...This seems like a very round about way of developing -
> I must be missing something here although I do not know what? Should I
> modify the setting.py to change the STATIC_URL value dependent on whether
> the server is production or development or is there any smarter way?
>
> As ever any advice is much appreciated.
>
> Huw_at1
>
> --
> 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/-/SL1HBsWfETwJ.
> 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: Append [RESOLVED] to your post subject if you got to a working solution

2012-12-26 Thread Avraham Serour
so maybe we should file a bug report to gmail on this


On Wed, Dec 26, 2012 at 10:01 AM, Axel Rau  wrote:

>
> Am 25.12.2012 um 09:51 schrieb Avraham Serour:
>
> > I oppose adding [RESOLVED] to the subject, this means changing the
> subject
> > to a complete different string and detaching it from the thread.
> MUAs like Apple Mail or Thunderbird use "references" header (if present)
> instead of "subject" for threading.
>
> Axel
> ---
> PGP-Key:29E99DD6  ☀ +49 151 2300 9283  ☀ computing @ chaos claudius
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django installation on Hostgator

2013-01-03 Thread Avraham Serour
Hi, I'm also using hostgator to host a django project.
first of all note that they have different plans with different features,
what I'm going to write applies to their shared hosting plans.

Looks like they are using some version of centos, which comes with python
2.6 I believe.
Installing a python from source on your home folder is a good idea, but
unfortunately hostgator blocks access to gcc.
on the other hand they already have python 2.7.3 installed, juts use python2.7
as the executable, try running "python2.7 -V"
btw, they also have python2.6 for 2.6.6 and python3 for 3.2.3

after that you should use virtualenv to create a project specific env so
you can install things using pip. download the virtualenv.py file to you
project folder and run it from there. for the index.fcgi file you should
put this in the first line:
#!/home/username/projectname/env/bin/python

other than that I think it should be standard, maybe I should do a blog
posting documenting this better. let us now if this works


On Thu, Jan 3, 2013 at 6:45 AM, John Neumann  wrote:

> You can also try this: https://my.hostgator.com/cgi/help/530 and/or this:
> https://my.hostgator.sg/cgi/help/python-install though iric it was
> riddled with issues. Been a bit since I had to do it without the ability to
> install things intelligently. Personally I'd suggest trying to install
> virtualenv and see if you can even get that to work. If you can't then
> you're probably screwed (again though I'd still suggest switching hosts).
>
>
> On Wednesday, January 2, 2013 10:34:55 PM UTC-6, John Neumann wrote:
>>
>>
>> You would be correct. You cannot install anything else on HostGator (it's
>> why I left them despite their fantastic customer support). You can see what
>> they do have installed here: http://support.**hostgator.com/articles/**
>> hosting-guide/hardware-**software/python-modules
>>
>> Outside of those things you're hosed. Either find another host or lose
>> the libs. After I had the same problem I moved to WebFaction and couldn't
>> be happier there. They have great customer support as well (though I do
>> miss the ability to chat on the fly).
>>
>> Also it would be easier to install django if you had another host.
>> Hostgator is great for most things outside of Python land. Again, like
>> Hostgator, but their Python/Django support is weak sauce.
>>
>> On Wednesday, January 2, 2013 6:32:10 PM UTC-6, Gjorge Karakabakov wrote:
>>>
>>> Hi, I've created a Django project but can't really seem to install it
>>> correctly on Hostgator.
>>>
>>> I've followed this tutorial: https://docs.google.com/**document/pub?id=*
>>> *1jhvixMmTRGYHRbHaYlTHTNrtpziGo**tQMc0iBO0sTbIo
>>> and created new project which worked. When I uploaded my own project I
>>> got server error - 500.
>>> I'm presuming it has something to do with the additional apps i'm using:
>>> endless-pagination, newsletter, sorl.thumbnail, django_extensions
>>>
>>> How can install them on the server? I can't really use sudo pip install
>>> there I don't have permissions.
>>>
>>> Also is there more detailed/easier way of installing django?
>>>
>>> Please explain in detail I'm really new at django.
>>>
>>> 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/-/Q88wygKPvGwJ.
>
> 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: use email as databse nay orm ?

2013-01-07 Thread Avraham Serour
maybe I didn't understand correctly, but do you want to use email as a
backend for storing data? like an sql to IMAP wrapper?


On Mon, Jan 7, 2013 at 5:50 PM, bussiere bussiere wrote:

> Is there any orm or modification of django orm to use email as database
> for django ?
>
> Regards
> Bussiere
>
>
>
> "Les nouvelles technologies offrent pleins de nouvelles possibilités,
> pleins de possibilités d'erreurs surtout en fait."
> insurance.aes256 : http://goo.gl/gHyAY
> -BEGIN PGP PUBLIC KEY BLOCK-
> Version: GnuPG v1.2.1 (MingW32) - WinPT 0.7.96rc1
>
> mQGiBE9sjdsRBADsY+DaDgj+pDuGLNVL6Dc+ghCxaEBK+9nwBvKPGIUocz13V42P
> 5Jn/NJ9zRgZNdg5XbhohN2ltas8Nr09rrRQXbBk8zjCg/Qr0a4LmfA3j128SwCfZ
> aTe5zlo/WSSuGv6kWGe/KZrLmiQoZRTDbZzqWyZxuJRkcpgsZc+jYRXJHwCgualT
> LpC23Ja3plM6J6noFaqAlMUEAKZGDadSS/BW4gckw9XqSHRex7/XyWU4sqVQlhMy
> 5DEIba7H8cU6grww+p/cYa3OCocv5Mycf6MbWDCPrtsG0X08u8PgEaE29BsLIgSm
> JF6r8y4Rgwj5xyCMTaxql82S+tZHyScpAoQ0a+xlTwxMZMuwK9p6b7oipXHL+UPN
> sDfkBACoYLS4PQPFotqWI96j83NNLwEumUzA6Rqyas8w6Xwr51quA65y/0nBmMmp
> l58tKN7eyc5+bIpRX5bGG6ktCUHnfzk9uvnG7peilWzYT6+AJ3gbBgMGLBPByJBN
> NH+nLjzsh4PzIxuSHLMiK5FkDNE2B95kaahIg42SQPT80LyvDLQlYnVzc2llcmVf
> cHJpdmF0ZSA8YnVzc2llcmVAZ21haWwuY29tPohZBBMRAgAZBQJPbI3bBAsHAwID
> FQIDAxYCAQIeAQIXgAAKCRAYpzZWoPP7b0h0AJ4n9feBF2FH4JUGhLU3XL3eIrOX
> 9gCfZbN4JHYl/nRLL4uHrceRUk1M9Pm5Ac0ET2yN3hAHAK5MypLMT50yklt1n/pQ
> MjrFXuvM9IQvVyQemHMUBqKqxPTVMJLn86mR5mTLMqs+WVAqei8GTsQeSSvHyIbk
> 8RvYrKY7aK2RVZUV1dHQ6PII0w3BI5C0L9GM/UyIq0VRXTW6zjp9hS/xgn5SrQad
> VIdGQKFVJa9h5/AzgjseARMQRkTQA/xX5/WmHxXaXUPhGxCeFsoqs53UFz1rkHYx
> mus2WiD0gHbJ58DiMlVmupeNumi4e9wa+mYuW4qGwjzsQn9ZFNdoiUFzQrqZa6o+
> Son+yZpGe/H9VidrWR5LhwD7AAMGBv9bhswvwpQ23X0kGItv7/jHVr/RJui7FAXY
> mOM4WAoUv/5ttPHf8OifWmeUDPlzm4txvR5a7t4hhVDehek1J7FEVvfG+ffcHiPP
> kkFaUv2EgrXziozt/Vkr2nngsKO5FpRJe9GSqn68uZirhwbkHSKX6LPNFTWSYR3E
> fefnsCaP82OJDBFGFMg2aMsz9QL85bg58fgHU972kLTePXUVAh3gaxb6qpjwZt2b
> yrCGJ/rnmIc/IWH8TJtHI5Yf3Abx2vlFTtzRH0CwVXuO0msjcfRS8NSm/ih5
> 0ssElxKU6IhGBBgRAgAGBQJPbI3eAAoJEBinNlag8/tvoBEAn2Yqu0UFC5OSjD1Y
> JQ00FFjNVestAJ0XctcbmhKaFuQ46SccW8C2JDG/xA==
> =+VZi
> -END PGP PUBLIC KEY BLOCK-
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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: Moving a Django website to another server

2013-01-31 Thread Avraham Serour
similar question on the same topic:

I used dumpdata/loaddata to move from sqlite to postgres, while it was able
to move the relations it didn't get any image, any way I could something
similar but including the images?

would south be able to do it?


On Thu, Jan 31, 2013 at 11:09 AM, John Robertson <
linksstreetdes...@gmail.com> wrote:

> Hi there, thanks for all your very helpful responses. Its all a little out
> of my comfort zone so I might employ someone to do it for me. Any
> takers/quotes?
>
> cheers
> John
>
>
> On Friday, January 25, 2013 10:20:49 AM UTC, John Robertson wrote:
>>
>> Hi there, if I want to move a Django website to another host, is it as
>> simple as copying across all the site files and DB (and changing config
>> files)? If so, is there some kind of tool to create a zipped folder of the
>> website so that FTP does not take several hours! Sorry if this seems a very
>> basic question, but I just wanted to check before I proceed with it. They
>> are fairly simple, small sites, but still there are thousands of files.
>>
>> Many thanks!
>> John
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Moving a Django website to another server

2013-01-31 Thread Avraham Serour
Just checked the docs, looks like ImageField stores the path

it was a satchmo app, does someone knows what it does with the product
images?

thanks
avraham


On Thu, Jan 31, 2013 at 4:45 PM, Kelly Nicholes wrote:

> If you're storing your images in your database (don't) then your db
> migration should have done it.  If you're storing the paths in the
> database, let's hope they're relative paths to the images.  You'll have to
> copy the images to your new server using the same approaches listed above.
>  One alternative is to have a separate server that serves all of your
> static media, then your paths can stay the same, regardless of which
> server(s) your database(s)/code is on.
>
>
> On Thursday, January 31, 2013 5:47:45 AM UTC-7, אברהם סרור wrote:
>
>> similar question on the same topic:
>>
>> I used dumpdata/loaddata to move from sqlite to postgres, while it was
>> able to move the relations it didn't get any image, any way I could
>> something similar but including the images?
>>
>> would south be able to do it?
>>
>>
>> On Thu, Jan 31, 2013 at 11:09 AM, John Robertson 
>> wrote:
>>
>>> Hi there, thanks for all your very helpful responses. Its all a little
>>> out of my comfort zone so I might employ someone to do it for me. Any
>>> takers/quotes?
>>>
>>> cheers
>>> John
>>>
>>>
>>> On Friday, January 25, 2013 10:20:49 AM UTC, John Robertson wrote:

 Hi there, if I want to move a Django website to another host, is it as
 simple as copying across all the site files and DB (and changing config
 files)? If so, is there some kind of tool to create a zipped folder of the
 website so that FTP does not take several hours! Sorry if this seems a very
 basic question, but I just wanted to check before I proceed with it. They
 are fairly simple, small sites, but still there are thousands of files.

 Many thanks!
 John

>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@**googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at 
>>> http://groups.google.com/**group/django-users?hl=en
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Need guidance on static website conversion to Django

2013-02-05 Thread Avraham Serour
if the site is static why use a cms? just serve the static files, you won't
get any faster than that


On Tue, Feb 5, 2013 at 8:37 PM, Steve Metivier  wrote:

>
>- Project: Convert an essentially static HTML website and its attached
>WordPress blog, to Django, to improve on its currently slow load time, and
>to enable its functionality to be extended. (It’s currently implemented on
>a platform that I believe introduces significant overhead at runtime, and
>is very restrictive in extensibility. It’s on one of those “build your own
>website with no technical expertise” platforms.)
>I should note that I do have technical expertise, having been a
>professional developer in C for many years, and I now have a decent handle
>on HTML and CSS, but am a beginner with both Python and Django.
>- The website is a famous quotes site. (It’s 
> www.InspirationalSpark.com,
>if you want to take a look.) Each page focuses on a specific subject (which
>its URL indicates), and is comprised of some introductory text, including
>meta tags, followed by 12-20 famous quote entries, each made up of the
>quote itself, it’s author, and a short description. Finally, there are
>related page links at the bottom, and AdSense in several places. The
>navigation consists of topic links in the left column, and there is also a
>right column containing various elements that are shared on all pages.
>- I envision each quote becoming a standalone object, so it can be
>shared socially and, eventually, rated/voted. I intend for each quote to be
>associated with a single topic page, for the most part.
>- The purpose of the *blog* is to allow daily additions of new quotes,
>which are scheduled as a “quote of the day”, go out to a feed, and are
>posted to an associated Facebook page and to Twitter, and then listed on
>one of the topic pages. I don’t actually want the individual posts to be
>visible to the search engines, due to the thin content issue. They should
>only be visible within one of the topic pages, and on the home page.
>- It’s critical that the page URLs remain unchanged, due to the number
>of inbound links that already exist, and current traffic (around 10,000
>views/day).
>- I think what I’m looking for is a CMS, with a twist, to enable
>multiple objects per page.
>Here’s the long-term plan:
>- Phase 1 – re-implement the website (separate from the blog), as is,
>in Django, to hopefully improve its currently poor load time. High priority
>is given to maintaining the current URLs completely, for SEO reasons, and
>to time to production launch.
>- Phase 2 – migrate the current WordPress blog to Django.
>- Phase 3 – add social media buttons to each quote on the page – for
>Facebook and twitter.
>- Phase 4 – add user-created pages, where they can store and display
>their favorite quotes, with accounts and registration.
>- Phase 5 – add voting on individual quotes within a page.
>- Getting to phase 1 completion is a high priority, even if it means
>reworking components later to do so.
>- The admin interface would need to provide for adding new quotes, and
>assigning them to topic pages, plus adding new topic pages. In the current
>Wordpress blog implementation, it’s very handy to be able to specify each
>of the fields for a quote entry via a form, then pick the category from a
>list. It would be nice to keep this type of interface.
>- The scheduling of new “posts” feature is also desirable, so I can
>batch up new additions, and trickle them out, updating the home page daily.
>
>
>
> The big question: Should I start with a Django CMS like Mezzanine, and
> modify it as needed, start from some other open source project, or start
> from scratch?
>
>
>
> Thanks.
>
> --steve
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: E-commerce framework for downloadable content

2013-02-08 Thread Avraham Serour
don't forget satchmo.

In any case I believe all the shops have support for downloadable products,
it it a fairly common case

Usually the shops don't store cc info, they connect to some payment
processor like paypal, or are flexible so you can implement your own
like collect on delivery

avraham


On Fri, Feb 8, 2013 at 3:02 PM, Carlos Edo Méndez wrote:

> Hi!
>
> I'm looking for a django framework for e-commerce.
> I've been searching and i found LFS, Satchless, Plata... but I don't know
> which is the most suitable for my needs.
> My project is similar to iPhone's Appstore. The content to sell is
> downloadable and it is uploaded by third party developers or designers. I
> also need it to be fast and easy to pay, maybe storing credit card
> information or a similar solution.
> Do you know which framework would be best for this?
>
> Thanks in advance,
> Carlos
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Multiple sites and inheritance

2013-02-14 Thread Avraham Serour
I'm not sure you can inherit the whole project, in any case I believe you
could make a boilerplate project and override whatever settings or models
as needed.


On Thu, Feb 14, 2013 at 11:25 AM, Jonathan ATTON
wrote:

> Hello,
>
> I currently have a website made with Django. I use models, databases,
> admin ...
>
> Now I need to create two new sites based on this first site. The first
> site will become a abstract site.
>
> I will have to do some differents update on these two new sites: add
> attributs, update admin pages, ...
>
>
> Can you help me to find the best way to do this ?
>
> My first idea was to use inheritance but some poblems appears. The main
> problem is that in my abastract site I have reference to the abstract class
> and not to the new class.
>
> In C# the keyword 'new' allow to do something closed to what I need: add
> attributs, methods ... to an existing class.
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Impossible? Django with NTLM SSO auth on windows?

2013-03-04 Thread Avraham Serour
Hi,

Does anyone think using ntlm instead of/on top of oauth/social logins.
Ideally this could be given as another choice of login/authentication on
top of oauth options, this would be a solution to the user not having to
remember yet another password. does linux have anything like that?

would this be practical, has anyone thought of this?

avraham


On Mon, Mar 4, 2013 at 11:19 PM, Anton  wrote:

> @Branko,
>
> no...I didn't think about Kerberos, I only realised
> in the last day that Ad use this system which I don't know either)
>
> Do you know some tutorial/howto describing this SSO
>
> with Django/apache on windows?
>
> Or I am the only one on this planet with this ides?
>
> Thanks
>
>   Anton
>
> Branko Majic wrote:
>
> > On Mon, 25 Feb 2013 21:06:33 +0100
> > Anton  wrote:
> >
> >> Hi,
> >>
> >> I am using my django in the following way:
> >>
> >> OS: Windows 7 (64 bit)
> >>
> >>  + Python 2.7.3 (32bit)
> >>
> >>  + apache 2.4.3 (32 bit) from apachelounge
> >>(I use the version which was build with vs2008 like python 2.7.3)
> >> http://www.apachelounge.com/download/win32/binaries/httpd-2.4.3-
> win32-
> >> VC9.zip
> >>
> >>  + django 1.4.5
> >>
> >>  + mod_wsgi 3.4 (32 bit) from http://code.google.com/p/modwsgi/
> >>(compiled manually with vs2008 since no binaries available)
> >>
> >> I would like to use the typical Windows intranet scenario
> >> where you have a single-sign-on with the internet explorer.
> >>
> >> At least in our company the ASP .NET powered intranet sites
> >> work fine with this.
> >>
> >> I googled around, as if I understood right, this auth system
> >> is called NTLM and if you want to use it, you need
> >> the apache module "mod-auth-sspi".
> >>
> >> If I look at the project page
> >> http://sourceforge.net/projects/mod-auth-sspi/?source=dlp
> >> I see only stuff dated from 2011 and only for *apache 2.2*.
> >>
> >> And if I read this article on apachelounge:
> >>
> >> http://www.apachelounge.com/viewtopic.php?t=4548
> >>
> >> then there will be *never* a support for Apache 2.4.
> >>
> >> In the Django docs:
> >> "Authentication using REMOTE_USER"
> >> https://docs.djangoproject.com/en/1.4/howto/auth-remote-user/
> >>
> >> you get links to mod_auth_sspi but its has be forgotten to mention
> >> that this module (seems) now obsolete.
> >>
> >> So the question is:
> >>
> >> Is it possible to obtain SSO with Django on a Windows powered machine,
> >> or do I have to give up and try my luck with ASP.NET or perhaps php
> >> for windows or whatever.
> >>
> >> I love Django & python, but I am here in a dead end.
> >>
> >> Is there somebody using this scenarion (which is quit common in big
> >> companies)?
> >>
> >> Thanks.
> >> Anton
> >>
> >
> > Hm... Did you maybe think about using Kerberos part of the AD for
> > authentication instead?
> >
> > Best regards
> >
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Create Django web apps with drag and drop interface builder

2013-03-23 Thread Avraham Serour
This looks nice but the documentation is lacking yet I hope your projects
success (also the desktop GUI builder)

If I may make a suggestion, keep in mind that today people use bootstrap
(and foundation ), the framework could support
that. and also it could make it easy to use jquery


On Sat, Mar 23, 2013 at 9:51 PM, timothy crosley
wrote:

> Hi,
>
> For the last few years I have been working on a WebApplication framework
> designed to let you build complex web apps using a drag and drop interface
> builder
> and pure python code. I have just now released it to the public and would
> really like feedback and opinions. You can see it here:
>
> www.webbot.ws
>
>
> These applications can then run on top of Django or AppEngine.
> I hope other Django users find it useful!
>
> Thanks,
>
> Timothy
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [django-users] Limit uploaded image properties

2013-03-26 Thread Avraham Serour
next time consider recommending pillow instead of PIL
https://github.com/python-imaging/Pillow
https://pypi.python.org/pypi/Pillow/2.0.0


On Tue, Mar 26, 2013 at 4:30 AM, Nikolas Stevenson-Molnar <
nik.mol...@consbio.org> wrote:

> I think you can get at a file's size with the 'size' attribute (in
> bytes). Conceivably you could stick it inside a "clean" method for your
> form and do it that way.
>
> class MyForm(forms.Form):
> ...
> def clean_image(self):
> image = self.cleaned_data['image']
> if image.size > 1024*1024: //1MB
> raise forms.ValidationError("Images are limited to 1MB")
> return image
>
> Alternatively, if you have PIL installed, you can use it to look at the
> image dimensions and cap enforce restrictions there (or simply rescale
> to the maximum). http://www.pythonware.com/products/pil/
>
> _Nik
>
> On 3/25/2013 7:24 PM, Shawn Milochik wrote:
> > It's easy to do it by file size in your server config. For example, in
> > nginx or Apache. You shouldn't have to set it in Django, and I don't
> > believe Django provides any ability to cap it.
> >
> > https://docs.djangoproject.com/en/dev/topics/http/file-uploads/
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django hosting. Need to run executable for my app

2013-04-09 Thread Avraham Serour
I have a toy account on bluehost, I compiled my own python version on my
$home no problem.
It is slow to run my django projects, but I compile python packages when
pip install wants no problem


On Tue, Apr 9, 2013 at 9:57 PM, Josh Cartmell  wrote:

> +1 for webfaction, it shouldn't be a problem to compile and use your own
> binary with them.
>
>
> On Monday, April 8, 2013 11:52:41 PM UTC-7, larsvegas wrote:
>>
>> Can somebody advice me on a provider where I can run my own executable?
>> The program I need to run is written is c++ and can be installed on windows
>> server or linux. A rough estimation of costs?
>>
>> Thanks!
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Serving files in production

2013-04-11 Thread Avraham Serour
you can create a subdomain (static.yourdomain.com) and serve static using
that, configure the second webserver to serve this subdomain


On Thu, Apr 11, 2013 at 2:01 PM, Drew Ferguson wrote:

> Hi
>
> The docs recommend serving static data from a second web server rather
> than the one serving via WSGI
>
> How do folks implement this? I can't figure how to serve data for the
> same domain using 2 web servers. Am I missing something?
>
> --
> Drew
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Status of Django with Python 3.x

2013-04-11 Thread Avraham Serour
I believe pillow supports python 3, you can use it as a drop in replacement
of PIL


On Thu, Apr 11, 2013 at 6:21 PM, Timothy Makobu  wrote:

> From the release notes 
> https://docs.djangoproject.com/en/dev/releases/1.5/"Django
> 1.6, will support Python 3 without reservations."
>
> And from the release-process
> https://docs.djangoproject.com/en/1.2/internals/release-process/ "Minor
> release (1.1, 1.2, etc.) will happen roughly every nine months"
>
> So towards the end of the year we'll have 1.6.
>
>
> On Thu, Apr 11, 2013 at 4:48 PM, Thomas Weholt wrote:
>
>> I develop my current project with python 2.7 and 3.3 and so far my
>> problem is not with django being 3.x compatible but critical/popular
>> third-party packages like PIL, django-debug-toolbar etc not being python 3
>> ready. I hope those and several other packages will be ported to python 3,
>> since Python 3 has some very nice features not available in 2.x and it
>> solves all my unicode issues being a programmer which often deal with
>> non-english characters.
>>
>> So far I've had no problems using python 3 and django. All problems I've
>> encountered has been caused by thrid-party packages, my own packages
>> included :-|
>>
>>
>> On Thu, Apr 11, 2013 at 3:36 PM, Mark Lybrand  wrote:
>>
>>> I understand that there is only experimental support for Python 3.x in
>>> Django 1.5.  Is there any feeling for how far out a stable version of
>>> Django using Python 3.x might be?  I understand that any answer is likely
>>> to be conjecture and guessing and that is okay.  I am just trying to gauge
>>> if I am looking at a matter of months or a year or if it something that may
>>> be 3 or 5 or more years out.
>>>
>>> Thanks in advance.
>>>
>>> --
>>> Mark :)
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
>>
>> --
>> Mvh/Best regards,
>> Thomas Weholt
>> http://www.weholt.org
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to run cdn link in a local setup without screwed up hyperlink?

2013-04-13 Thread Avraham Serour
Instead of http:// I recommend using just // , for example:




On Sat, Apr 13, 2013 at 6:29 PM, Vincent Fulco  wrote:

> [SOLVED] Oddly, copied right from an online resource and colon was missing
> in web address, accesses external site correctly now.
>
>
> On Saturday, April 13, 2013 9:37:07 AM UTC-5, Vincent Fulco wrote:
>>
>> Attempting to use bootstrapcdn.com in a local bootstrap template on a VM
>> (with 2nd IP address to outside world) before pushing to heroku.  Standard
>> code in the head:
>>
>> http://netdna.**bootstrapcdn.com/twitter-**
>> bootstrap/2.3.1/css/bootstrap-**combined.min.css"
>> rel="stylesheet">
>>
>> http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js>
>> ">
>>
>> Static urls ref in other lines works fine--> > href="{{STATIC_URL}}css/**custom.css" rel="stylesheet">
>>
>> Django base.py seems to be set up correctly but I get a mangled hyperlink
>> and #404 error:
>>
>> /website/http//netdna.**bootstrapcdn.com/twitter-**
>> bootstrap/2.3.1/js/bootstrap.**min.jsHTTP/1.1"
>>  404
>> 2915
>>
>>
>> TIA, V.
>>
>>
>>
>>
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Avraham Serour
I usually try to compile the packages on my win7 machine, just so I can use
pip install inside my virtualenv.
psycopg2 was the only one so far that I couldn't, eventually I installed
the pre compiled binaries on my root python installation and then copied
the files/folder necessary for psycopg2 from site-packages (from my root
python to the virtual env)


On Sun, Apr 14, 2013 at 8:29 PM, Sanjay Bhangar wrote:

> On Windows, I'd strongly recommend just installing the pre-compiled
> binaries for these sort've things, unless you're experienced with compiling
> software / making this sort've thing work on Windows ..
>
> So, install something like
> http://www.stickpeople.com/projects/python/win-psycopg/ and then, make
> sure your virtualenv is configured to use system-site-packages. (if you are
> using the latest virtualenv, you would need to maybe re-create the
> virtualenv with "virtualenv --system-site-packages ." .. ) - just google
> virtualenv system-site-packages if that does not fully make sense :-)
>
> It's probably "better" to use pip and install it inside your virtualenv,
> but on Windows, I could never figure that out :-), and installing the .exe
> files and using --system-site-packages seems to work fine for most things
> .. it should be fairly rare that you require two different versions of
> something like psycopg2 for different projects, so it should not be
> problematic to have it installed system-wide ..
>
> All the best,
> Sanjay
>
>
>
>
> On Sun, Apr 14, 2013 at 10:17 PM, Serdar Dalgic wrote:
>
>> On Sun, Apr 14, 2013 at 5:45 PM, Mustafa Tulu 
>> wrote:
>> > Hi All,
>>
>> Hi;
>>
>> >
>> > When I try to install the package into my virtualenv in pycharm, it
>> tries to
>> > compile the source into binaries, it fails at linking stage, giving
>> errors
>> > like:
>> >  Creating library build\temp.win32-2.7\Release\psycopg\_psycopg.lib and
>> > object build\temp.win32-2.7\Release\psycopg\_psycopg.exp
>> > pqpath.obj : error LNK2019: unresolved external symbol _PQclear
>> > referenced in function _pq_raise
>> > connection_int.obj : error LNK2001: unresolved external symbol
>> _PQclear
>> > cursor_type.obj : error LNK2001: unresolved external symbol _PQclear
>> > error_type.obj : error LNK2001: unresolved external symbol _PQclear
>> > pqpath.obj : error LNK2019: unresolved external symbol
>> _PQerrorMessage
>> > referenced in function _pq_raise
>> >
>>
>> This problem is not django-specific.
>>
>> Make sure you have python-dev and libpq-dev packages installed on your
>> environment. After that, try "pip install psycopg2"
>>
>> --
>> - Serdar Dalgıç 
>> FLOSS Developer, Life & Nature Hacker
>> twitter: https://twitter.com/serdaroncode
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: "ImportError: No module named django"

2013-04-15 Thread Avraham Serour
doesn't pip and virtualenv work on mac?


On Mon, Apr 15, 2013 at 11:37 PM, Larry Martell wrote:

> On Mon, Apr 15, 2013 at 2:34 PM, Nathan Hall  wrote:
> > Yep, I've got admin access, it's my personal machine.
> >
> > Actually, I looked again and it may not have been a password issue, this
> was
> > the message I received: "python: can't open file 'setup.py': [Errno 2] No
> > such file or directory"
>
> Then you were not in the correct directory. Follow the instructions on
> this page:
>
> https://www.djangoproject.com/download/
>
> > On Mon, Apr 15, 2013 at 4:29 PM, Larry Martell 
> > wrote:
> >>
> >> On Mon, Apr 15, 2013 at 2:24 PM, Nathan Hall  wrote:
> >> > I tried my password, it doesn't work.
> >>
> >> Go to System Preferences, Users and Groups. Is your account an Admin
> >> account? If not, you can't sudo. You'll need someone with an admin
> >> account to install it for you. But if you don't have an admin account
> >> how is it that you 'dropped the Django directory into
> >> /Library/Python/2.7/site-packages?' You'd need root access to do that.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to django-users+unsubscr...@googlegroups.com.
> > To post to this group, send email to django-users@googlegroups.com.
> > Visit this group at http://groups.google.com/group/django-users?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Using postgres Users as django users

2013-04-16 Thread Avraham Serour
I believe you could create a custom auth that relies on the postgres auth
system


On Tue, Apr 16, 2013 at 3:00 PM, Maximilian Tyrtania <
maximilian.tyrta...@googlemail.com> wrote:

> Hi there,
>
> This is my 1st post, so please be gentle...
>
> I'm looking into using django as web front end to my Postgres DB. Now in
> my PG server i have a number of db users (created via create user xy...),
> and I would like to use these users as well in my django->postgres
> connections. Obviously djangos concept of having a single user hard coded
> in settings.py doesn't cooperate with this idea. Is there a way to let the
> user give his name and password, and then tell django to use those
> credentials with the pgconnection?
>
> Best wishes from Berlin,
> Maximilian Tyrtania
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Using postgres Users as django users

2013-04-16 Thread Avraham Serour
So you are saying that each user models will be using the same database but
with different connection settings?

I believe you can create each and every connection setting on your
databases inside settings.py, each one would use the same database but a
different user.
When creating an object specify it to use the corresponding database


On Tue, Apr 16, 2013 at 5:27 PM, Maximilian Tyrtania <
maximilian.tyrta...@googlemail.com> wrote:

> I looked at that a bit, thanks, the problem is that I can well use my pg
> server to do the authentication, but I still can't talk django into using
> the database connection for this particurlar user (hopefully I'm just not
> aware of the solution).
> You see, lots of my models in models.py are based on database views in
> postgres, which in turn make use of the current_user() function. This is
> why I need django to use the correct connection settings.
>
> Am Dienstag, 16. April 2013 14:51:18 UTC+2 schrieb אברהם סרור:
>
>> I believe you could create a custom auth that relies on the postgres auth
>> system
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: IDE to practice django template language

2013-04-19 Thread Avraham Serour
I really like pycharm  , you should give
it a try


On Fri, Apr 19, 2013 at 6:42 AM, Apokalyptica Painkiller <
apokalyptic...@gmail.com> wrote:

> Now i'm using this: http://ninja-ide.org/. I don't know if this is what
> you need, but why don't you try it.
>
> See you
>
>
> 2013/4/18 Srinivasa Rao 
>
>> Hi, I am new to this djnago, can you suggest any
>> development environment to practice template language. thanks,Srini
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>
> --
> I live each day
> Like it's my last
> I live for rock and roll
> I never look back
>
> I'm a rocker
> Do as I feel as I say
> I'm a rocker
> And no one can take that away
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to link different kinds of objects?

2013-04-21 Thread Avraham Serour
If I could understand you right, a m2m field is exactly what you are
describing. an object may belong to one or more feeds.
Feed an object have an relation, The question if an object have to belong
to a feed or not necessarily? does an object always have a related feed?
does a feed always have a related object?


On Sun, Apr 21, 2013 at 11:42 PM, Bastian wrote:

> In the mean time I will try with a many to many field. That's probably
> more than enough.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Need good image on the fly resizing

2013-04-22 Thread Avraham Serour
You should use Pillow instead of PIL


On Mon, Apr 22, 2013 at 8:59 AM, yati sagade  wrote:

> Check PIL out:
> http://stackoverflow.com/questions/273946/how-do-i-resize-an-image-using-pil-and-maintain-its-aspect-ratio
>
>
> On Mon, Apr 22, 2013 at 6:05 AM, frocco  wrote:
>
>> Can someone point me to a good package?
>>
>> Thanks
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
> --
> Yati Sagade
>
> Software Engineer at mquotient 
> 
>
> Twitter: @yati_itay  | Github: 
> yati-sagade
>
> Organizing member of TEDx EasternMetropolitanBypass
> http://www.ted.com/tedx/events/4933
>
> https://www.facebook.com/pages/TEDx-EasternMetropolitanBypass/337763226244869
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to link different kinds of objects?

2013-04-22 Thread Avraham Serour
So it looks like the m2m should be in the object Model. one more thing,
maybe it would be worth it to inline the object admin in the feed admin
take a look at
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin


On Mon, Apr 22, 2013 at 12:22 PM, Bastian wrote:

> Thanks for your answer. About the constraints: a feed can be empty or
> contain one or more objects. And an object must belong to at least one
> feed. I have run some tests and the m2m field works perfectly for that.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to switch languages?

2013-04-22 Thread Avraham Serour
I suggest taking a look at
django-localeurl,
I used it instead of a form to change language on my last project. I
believe it is worth taking a look


On Mon, Apr 22, 2013 at 6:58 PM, Cody Scott wrote:

> How do you get the preferred language?
>
> In the 1.5 docs it says to add 'django.core.context_processors.i18n' to
> your TEMPLATE_CONTEXT_PROCESSORS which variable is that in your settings.py?
>
> If I add it to TEMPLATE_LOADERS and refresh the page I get the error:
>
> 'function' object has no attribute 'is_usable'
>
> /usr/local/lib/python2.7/dist-packages/django/template/loader.py in
> find_template_loader, line 112
>
>
>
> On Monday, 22 April 2013 11:36:34 UTC-4, ayeowch wrote:
>
>> There are several ways to switch language (https://docs.djangoproject.**
>> com/en/1.4/topics/i18n/**translation/#how-django-**
>> discovers-language-preference
>> )**. I normally set django_language session variable to the preferred
>> language.
>> For 1), have you compiled your messages into .mo files? You will also
>> need to reload your server to load the new .mo files.
>>
>>
>> On Tue, Apr 23, 2013 at 1:24 AM, Cody Scott  wrote:
>>
>>> I am trying to get translations to work on my site.
>>>
>>> I have marked words for translation and they show up in the django.po
>>> file.
>>>
>>> I am wondering what is the proper way to switch the current language.
>>>
>>> Currently I have the following in my project urls.py
>>>
>>> urlpatterns = i18n_patterns('',
>>> # etc
>>> )
>>>
>>> urlpatterns += patterns('',
>>> (r'^i18n/', include('django.conf.urls.**i18n')),
>>> )
>>>
>>>  And to switch languages I change the /en/ in my url to /ja/ or /fr/.
>>>
>>> I have two issues.
>>>
>>> 1) The page is not being translated except for 'Yes' and 'No' which are
>>> translated even if I remove them from my .po file. So there must be a
>>> default set of translation words? Or Chrome is seeing the /fr/ in the URL
>>> and translating it for me? I can't explain why that is happening. Even if I
>>> change what 'Yes' and 'No' translate to it doesn't change what is displayed.
>>>
>>> 2) The next page I visit reverts to a English with the /en/. Yes english
>>> is my default language in settings.py.
>>>
>>> #settings.py
>>> #Used for translations
>>> gettext = lambda s: s
>>> LANGUAGES = (
>>> ('en', gettext('English')),
>>> ('fr', gettext('French')),
>>> ('ja', gettext('Japanese')),
>>> )
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@**googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/django-users?hl=en
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: I have searched and searched for a CSV Importer that does the following.

2013-04-22 Thread Avraham Serour
looks like you'll have to write something like this yourself, it doesn't
seem hard to make a page presenting the user with an option before loading
the file and then using just one column


On Mon, Apr 22, 2013 at 5:47 PM, sparky  wrote:

> I have searched and searched for a CSV Importer that does the following...
> *
> Imports a CSV
> Allows users to then select the header that corresponds to the model.*
>
> But, honest nothing exists I can find, anyone know of any app out there in
> Django that does this I could have missed?
>
> As close as I have gotten is with
> http://django-csv-importer.readthedocs.org/en/latest/ but this has one
> big draw back, the user has to know what the fields they need  to start
> with and cannot config after upload.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Installing django-allauth

2013-05-01 Thread Avraham Serour
Hi,

I'm trying to install django-allauth in a new project (if anyone can
recommend something else for any reason I'm open to suggestions)

when running syncdb it says that I need to use south migrate for the
allauth apps

when running it throws an exception: django.db.utils.DatabaseError: table
"socialaccount_socialapp" already exists

Apparently allauth has it's internal migrations in the vcs, but it doesn't
support migrations

it looks like the app socialaccount has migration 1 - initial and then
migration 7 - initial
so of course when trying to run 7 it tries to create the table again, and
fails.

an easy solution would be to delete allauth migration folder, but this
would mean to clone it and maintain yet another fork, and having headaches
when updating it.

does anyone reccomend a workaround/solution to this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Installing django-allauth

2013-05-02 Thread Avraham Serour
I upgraded from 0.8.3 I believe to 0.10.1

actually the problem was that my own installation on my dev virtualenv got
polluted not sure how.
In any case I migrated until the problematic migrations, migrate the
problematic migration with --fake and then simply ran the rest of the
migrations

so far so good

thanks anyway


On Thu, May 2, 2013 at 7:59 PM, Sam Solomon  wrote:

> Hello,
>
> What version of allauth are you trying to install and where did you get it
> from?
>
>
> https://github.com/pennersr/django-allauth/tree/0.10.0/allauth/socialaccount/migrations
>  is
> the most recent version on pypi and has more than 2 migrations.
>
> Could it be that you have another app installed that also has a
> socialaccount app, meaning you will not be able to use the apps together?
> Please respond with your INSTALLED_APPS.
>
>
> On Wednesday, May 1, 2013 4:51:56 PM UTC-7, אברהם סרור wrote:
>>
>> Hi,
>>
>> I'm trying to install django-allauth in a new project (if anyone can
>> recommend something else for any reason I'm open to suggestions)
>>
>> when running syncdb it says that I need to use south migrate for the
>> allauth apps
>>
>> when running it throws an exception: django.db.utils.**DatabaseError:
>> table "socialaccount_socialapp" already exists
>>
>> Apparently allauth has it's internal migrations in the vcs, but it
>> doesn't support migrations
>>
>> it looks like the app socialaccount has migration 1 - initial and then
>> migration 7 - initial
>> so of course when trying to run 7 it tries to create the table again, and
>> fails.
>>
>> an easy solution would be to delete allauth migration folder, but this
>> would mean to clone it and maintain yet another fork, and having headaches
>> when updating it.
>>
>> does anyone reccomend a workaround/solution to this?
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to add Foreign Key with SOUTH/DJANGO on existing Database

2013-05-13 Thread Avraham Serour
you should have run manage.py schemamigration myapp --initial before
changing the model (before adding the FK)
then adding the FK and after that manage.py schemamigration myapp --auto

can you describe what you did exactly?


On Mon, May 13, 2013 at 1:56 PM, Giorgos Kontogiorgakis <
shortgeorge...@yahoo.com> wrote:

> Hi everyone,
> I'm trying to add a single foreign Key on an existing Database using
> Django.I searched on internet and i found out South migration.I installed
> South and i tried to add the Foreign Key but when i call "./manage.py
> schemamigration myapp --auto" (myapp is the of my existing app) i get a
> message "Nothing seems to have changed".Any ideas how i can procced?
>
>
> I am waiting for your answers
> Thanks in advance!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to add Foreign Key with SOUTH/DJANGO on existing Database

2013-05-13 Thread Avraham Serour
create a FK on Node to Domain


On Mon, May 13, 2013 at 2:37 PM, Giorgos Kontogiorgakis <
shortgeorge...@yahoo.com> wrote:

> Thanks a lot for your help mate!It was silly by me that i did the steps in
> wrong order!I added the foreign-key successfully now!But i have 1 more
> question if you can help me!I already have,let's say,a table named Domain
> and a table name Nodes and i want to make a dependecy on my webinterface
> where Domain have Nodes and Nodes can't exist without my Domain!In which
> way is that possible?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




timezone.activate GMT+offset inverts

2013-05-21 Thread Avraham Serour
Hi,

I have created a middleware that calls timezone.activate like this:

from pytz import timezone as tz
timezone.activate(tz('Etc/GMT+3'))

I when printing the time 20:20 UTC+0 it shows as 17:20

I even tried to use

{% timezone "Etc/GMT+3" %}
{{ value }}
{% endtimezone %}

but it still shows 17:20 when it should show 23:20
of course if I use
{% timezone "Etc/GMT-3" %}
{{ value }}
{% endtimezone %}

it shows the correct time. is there a bug when using GMT+offset timezone
instead of the regular Zone/Country

if anyone is wondering why I am doing this let me try to explain myself.
When a user logs in using facebook I can get the timezone from the
extra_data, facebook calculates DST and returns a number

thanks
avraham

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: simple TCP/IP connection

2013-05-27 Thread Avraham Serour
if the python code works, in theory it works with django, I suggest you try
to run it first and asking questions if it doesn't


On Mon, May 27, 2013 at 3:22 PM,  wrote:

> Can you kindly advice me if this are the right steps to do to create an
> application that handle a TCP/IP connection as client to a server and show
> sended and received data in a webpage?
>
> 1) model: define fields to be shown in the web-page
> 2) view: handle socket connection
>  send data function
>  receive data function
>
> This is the python code that I've been using to connect to server, I can
> use it in django?
>
> Please let me know, thanks
>
>
> #Socket client
> import socket   #for sockets
> import sys  #for exit
> #create an INET, STREAMing socket
> try:
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> except socket.error:
> print 'Failed to create socket'
> sys.exit()
> print 'Socket Created'
> host = '192.168.1.1';
> port = 35000;
> try:
> remote_ip = socket.gethostbyname( host )
> except socket.gaierror:
> #could not resolve
> print 'Hostname could not be resolved. Exiting'
> sys.exit()
> #Connect to remote server
> s.connect((remote_ip , port))
> print 'Socket Connected to ' + host + ' on ip ' + remote_ip
> #Send some data to remote server
> message = "GET / HTTP/1.1\r\n\r\n"
> try :
> #Set the whole string
> s.sendall(message)
> except socket.error:
> #Send failed
> print 'Send failed'
> sys.exit()
> print 'Message send successfully'
> #Now receive data
> reply = s.recv(4096)
> print reply
>
> s.close()
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Scripts to update Django tables

2013-05-29 Thread Avraham Serour
add your script to celery and make the necessary imports so the script can
use your model just like you did in manage shell
take a look at
http://stackoverflow.com/questions/1310495/running-a-python-script-outside-of-django
but in this case I suggest not creating a subcommand as the first answer
says

good luck
avraham


On Wed, May 29, 2013 at 5:01 PM, Brian  wrote:

> I'm new to Django (and frameworks in general) and having an issue with a
> project I'm working on.  Basically, I want to scrape data from a sports
> league website on a regular schedule and add updated stats into my
> database.  All of the Django tutorials for models I've looked at seem to
> give me information on how to add table data manually using the manage.py
> shell, fixtures, or fields on an admin page, but I cannot find anything
> about doing this more automatically through a script.  Is there something
> I'm missing, or am I trying to use Django models for something they aren't
> meant to be used for?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Using SQL or not

2013-05-30 Thread Avraham Serour
can't see the image properly, too small, clicking on larger doesn't load
and the expand button on the right bottom corner doesn't work


On Thu, May 30, 2013 at 5:42 PM, Hélio Miranda  wrote:

> Good!
> Not sure this is the most appropriate place to put it, if not I apologize.
> My question is as follows:
> I have to implement a scheme about football, all data on clubs, players
> and games as their statistics.
> The doubt I have is whether it is more advisable to do it in SQL or NoSQL
> as I was asked to do and if you can do in NoSQL. Because it has several
> relationships and joins, and joins NoSQL will not.
>
> My scheme is this:
> http://www.4shared.com/folder/h_k3P6KE/_online.html
>
> Someone can give me a hint about this?
> It is feasible to do in NoSQL, or the best is even in SQL?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Queryset math

2013-05-30 Thread Avraham Serour
try using annotate, you can do something
like Entry.objects.extra(select={'diff': "A - B"})

take a look at
https://docs.djangoproject.com/en/dev/ref/models/querysets/#extra


On Thu, May 30, 2013 at 11:46 PM, Javier Guerra Giraldez  wrote:

> On Thu, May 30, 2013 at 3:18 PM, SeanJ  wrote:
> > as soon as those values come from the queryset I can't do math on them.
>
>
> what have you tried?
>
> --
> Javier
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: linux or windows

2013-05-31 Thread Avraham Serour
for development purposes it shouldn't make a difference, on your server I
believe ubuntu would be a better choice than windows
on the other hand if your server is ubuntu some might choose to use it for
development also, to be as close as possible to the production environment


On Fri, May 31, 2013 at 2:15 PM, Jonas Geiregat  wrote:

>
> On 31 May 2013, at 13:11, Kakar Arunachal Service wrote:
>
> > Hi!
> > I know this question is one absurd question, but just out of curiosity,
> is it important to use linux other than the windows, related to django.
> Cause i'm in windows, and if it is, then i was thinking to use Ubuntu.
> Please advise.
>
> The platform is unimportant, if you feel at home in windows then use
> windows else use whatever you like as long as it is supported by django.
>
> On a UNIX based system, you could perfectly run/debug django, without
> touching anything like a shell, inside your IDE of choice .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Add a file download link that work only after login

2013-06-05 Thread Avraham Serour
maybe you could use something like this:
https://docs.djangoproject.com/en/1.1/howto/apache-auth/


On Wed, Jun 5, 2013 at 6:02 PM, Bill Freeman  wrote:

> The easiest thing, which you may or may not find to be adequate, is to use
> an "if" tag in the template to do one of:
>   Not render the button if you are not logged in, or
>   Render a button that has the correct link if you are logged in but links
> to a "you must log in" page if you are not, or
>   Render the correct button if you are logged in, but render a dummy
> disabled button if you are not
>
> I must point out that security is limited, since a logged in user could
> capture the link to share with anyone, but he could also simply share the
> file after download, so there can only be security if you can trust ALL of
> your logged in users.
>
> Django's template system, and what you must do to have access to the user
> object in the template, and how to test whether it is anonymous or
> authenticated are well covered in the documentation and/or discussed in the
> mailing list archives.
>
> Bill
>
>
> On Wed, Jun 5, 2013 at 6:44 AM, A T.Khan  wrote:
>
>> Hello everyone,
>>
>> I am relatively new on Django, in fact I got to know about it through
>> Openstack Dashboard which works using Django. anyway I got a question and I
>> been looking for it for a month now without getting any good results, I
>> finally decided to ask some of the experts here. If I am violating any
>> rules by posting it or if someone has already answered it, please tell me.
>> I hope this community is friendly enough to oversee this.
>>
>> I have already a Django setup running (you guessed it devstack), and it
>> works fine. I have done plenty of editing already. But now I want to add a
>> download button on a page, and by clicking to it, a file should be
>> downloaded. Seems simple enough, but right now what I have done is adding
>>
>> {% trans
>> "Downloadl" %}
>>
>>  in one of the files. This works perfectly ... however this link works
>> but It is simple html encoding, and it works even when I am not logged in,
>> bypassing the entire purpose of file security. I have tried to embed the
>> code in some py files but then it gives me debug error.
>>
>> So I will be really grateful if someone can guide me what to do here. All
>> I want is to add a download button/link on a page and a file to be
>> downloaded. I tried staticfiles and media_url methods, not the result I
>> want. Please help me that where I need to make changes in which
>> configuration files and how will it work.
>>
>> Thanks in Advance
>>
>> Best of Regards,
>> AT
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Migrating data/app/project to a new location and, if possible, version

2013-06-09 Thread Avraham Serour
you can try using some kind of mysql export/import or django's manage.py
dumpdata/loaddata and see of anything breaks


On Sun, Jun 9, 2013 at 2:03 PM,  wrote:

> Hi, sysadmin here,
> I am left with a django installation on a windows 2003 server that needs
> to be demoted. The installation is django (1, 2, 1, 'final', 0) on python
> 2.6.4 and a MySQL 5.1.46-community version. The platform is holding two
> custom/proprietary apps/projects. I would either worst-case-like to migrate
> everything "as is" on a virtualized 2003 server, OR would much more
> appreciate to install the latest django 1.5.1 with python/mysql - becauce
> then I can install additional modules for performance monitoring and
> auditing, which are now not supported on the current django version - and
> then migrate the data. In the latest scenario though there are many
> dependencies I don't grasp - files under the project folders, data on
> MySQL, configs all around the place depending on each other, etc.
> Is there any TOOL or at least DOCUMENT that supports me through this
> migration? I can't seem to find any on django-project-site.
> Thanks in advance for any help/hint!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Sharing session among multiple domains (generic web development question)

2013-06-11 Thread Avraham Serour
interesting problem!
I googled for "Sharing session among multiple domains"

take a look here for example:
http://stackoverflow.com/questions/6080017/how-to-share-session-among-multiple-domains-on-single-asp-net-website

it looks like you can do it across subdomains, so one solution is to split
your websites on subdomains
one interesting suggestion is the iframe one, if you implement that please
share how


On Tue, Jun 11, 2013 at 10:04 AM, Tomas Ehrlich wrote:

> Hi there,
> this question isn't bound to Django Web Framework as the major
> limitation are cookies:
>
> I have single instance Django site running on multiple domains. Each
> domain simply filters specific categories. There's an eshop and I need
> to share sessions among all domains so user can log in on one site and
> stay logged while browsing other domains.
>
> As I said before, the major limitation is how cookies work -- they're
> bound to single domain or many subdomains.
>
>
> I saw one solution -- on every page request send many GET requests to all
> domains, giving them session_id, eg:
>
> http://domain/sess/
>
> Each domain then receives session_id and save it to cookie. When user
> browse through site and switches to other domains, he remains logged in
> as the session_id is the same.
>
> This works but I'm concerned with security issues. Also I don't like
> 30+ requests on every refresh (it could be probably limitet only to
> login/logout views).
>
>
> What's you opinion? Have you ever dealt with problem like this? How
> have you solved it?
>
>
>
> S pozdravem
>   Tomáš Ehrlich
>
> Email:  tomas.ehrl...@gmail.com
> Tel:+420 608 219 889
> Jabber: elv...@jabber.cz
>
> "Půjdu kamkoliv, pokud je to kupředu." - D. Livingstone
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Using Fabric to clear database records

2013-06-14 Thread Avraham Serour
manage.py flush


On Fri, Jun 14, 2013 at 3:16 PM, Sithembewena Lloyd Dube
wrote:

> Greetings,
>
> I've got a Django 1.5.1. project where I have a Video model (basically
> saving video metadata). I would like to create a fabfile in my project
> folder so that when I run 'fab production refresh', the list of videos
> saved in the production environment (Amazon EC2) should be cleared out and
> any new videos added should have ids starting from 1 again.
>
> Any ideas on implementing this?
>
> --
> Regards,
> Sithu Lloyd Dube
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Probem with upgrade to python 2.7

2013-06-26 Thread Avraham Serour
If you upgraded your python installation in place you should reinstall your
libraries, specially PIL which needs compiling some parts. Just pip
uninstall pil and pip install again. Note that installing pil might be a
headache. On a side note I recommend using pillow which is a drop in
replacement for pil
On Jun 26, 2013 11:54 AM, "Andreas Kuhne" 
wrote:

> Hi,
>
> I am trying to upgrade our debian squeeze server running a django 1.5.1
> website from python 2.6 to python 2.7.5. I have been able to upgrade python
> without any problems. However, now when I try to start our site I get an
> issue with the PIL library.
>
> In our code we use "import Image" and not "from PIL import Image" which
> should work according to the documentation (I know there is an issue
> regarding which is correct and not, but I really don't care about that at
> the moment). When the site starts I get an error saying: "ImportError: No
> module named Image"
>
> I understand this has something to do with the PIL.pth file not being
> correctly read in the site-packages library folder, but I don't see why it
> doesn't get read? I have the same configuration on my development machine
> (an ubuntu 13.04 installation), but I can use import Image, and so could
> our server until the upgrade to python 2.7.
>
> Anyone have any ideas?
>
> Regards,
>
> Andréas
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Probem with upgrade to python 2.7

2013-06-26 Thread Avraham Serour
not strange at all, dot versions are not compatible, only minor. meaning
libraries targeted for python 2.6.x won't necessarily work on 2.7.5 but if
your previous installation was 2.7.3 you could just upgrade to python 2.7.5
with no problems


On Wed, Jun 26, 2013 at 1:01 PM, Andreas Kuhne
wrote:

>
>
> 2013/6/26 Avraham Serour 
>
>> If you upgraded your python installation in place you should reinstall
>> your libraries, specially PIL which needs compiling some parts. Just pip
>> uninstall pil and pip install again. Note that installing pil might be a
>> headache. On a side note I recommend using pillow which is a drop in
>> replacement for pil
>> On Jun 26, 2013 11:54 AM, "Andreas Kuhne" 
>> wrote:
>>
>>> Hi,
>>>
>>> I am trying to upgrade our debian squeeze server running a django 1.5.1
>>> website from python 2.6 to python 2.7.5. I have been able to upgrade python
>>> without any problems. However, now when I try to start our site I get an
>>> issue with the PIL library.
>>>
>>> In our code we use "import Image" and not "from PIL import Image" which
>>> should work according to the documentation (I know there is an issue
>>> regarding which is correct and not, but I really don't care about that at
>>> the moment). When the site starts I get an error saying: "ImportError: No
>>> module named Image"
>>>
>>> I understand this has something to do with the PIL.pth file not being
>>> correctly read in the site-packages library folder, but I don't see why it
>>> doesn't get read? I have the same configuration on my development machine
>>> (an ubuntu 13.04 installation), but I can use import Image, and so could
>>> our server until the upgrade to python 2.7.
>>>
>>> Anyone have any ideas?
>>>
>>> Regards,
>>>
>>> Andréas
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
> Thanks for the suggestion, strangely enough that was all I needed to do,
> ie reinstall the PIL language with pip uninstall & pip install. Now it
> works just fine.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: An easy way to integrate Jcrop in Django's admin?

2013-06-26 Thread Avraham Serour
django is in python, just crop the image just any other python program
would. people use PIL a lot, try using that (or pillow).
you can also use external tools like imagemagick, either using one of the
python bindings or calling the command line tools using subprocess


On Wed, Jun 26, 2013 at 1:48 PM, thoms  wrote:

> An easy way to integrate Jcrop in Django's admin?
>
> Hello,
>
> I'm new in the Django world, and I have a question regarding image
> resizing.
>
> What I'm trying to do:
> 1) A user upload an image in the admin
> 2) He is shown the Jcrop interface to crop the image, and submit the form
> 3) The original image and the cropped one are stored in imagefields
>
> I know there are some open source projects that are doing this
> (django-cropper or django-image-cropping) but I want to do it by myself.
>
> I have a PHP background, where this kind of things where really easy to
> do. But it seems that it's a lot more difficult to achieve in Django, which
> makes me doubt about my idea to learn Django...
>
> Any advice on how to do this in a simple way?
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: data transfer between databases

2013-06-30 Thread Avraham Serour
manage.py dumpdata


On Sun, Jun 30, 2013 at 10:40 AM, Mike Dewhirst wrote:

> This is probably a Postgres question but someone might be able to offer
> advice on how to transfer data :)
>
> New "reference" or read-only data gets input during development and I want
> to transfer it to the production database from time to time.
>
> I think my choices are:
>
> 1. Re-enter it manually - only if all else fails.
>
> 2. Use Django's multi-database feature and write a utility to transfer
> data which doesn't already exist. Except the databases are on different
> machines in different data centres.
>
> 3. Exploit some pre-existing tool written for precisely this problem.
>
> Any suggestions?
>
> There are currently three reference tables involved and two have m2m
> relationships between themselves. The other is stand-alone.
>
> Customer data is fine in the production database and won't be touched.
> There are no relationships with the reference tables.
>
> Thanks
>
> Mike
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> django-users+unsubscribe@**googlegroups.com
> .
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at 
> http://groups.google.com/**group/django-users
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Foreign Key problems with legacy database

2013-07-23 Thread Avraham Serour
you don't need songid = models.Integerfield()


On Tue, Jul 23, 2013 at 6:04 AM, Brian Millham  wrote:

> I have the following models:
>
> class Requestlist(models.Model):
>>id = models.IntegerField(primary_key=True)
>>songid = models.Integerfield()
>>song = ForeignKey('Song', db_column='songid')
>> class Song(models.Model):
>>   id = models.IntegerField(primary_key=True)
>>   title = models.CharField(max_length=255L)
>
>
> The relation should be Requestlist.songid = Song.id
>
> The above models seem to work for querying, but when I create a new
> requestlist, via a form, then I get the error that: Column songid specified
> twice.
>
> If I remove the ForeignKey, I can save the requestlist, but obviously I
> lose the relations.
>
> I've tried replacing the db_column='songid' with to_field='id' but that's
> worse. The relation then totally breaks.
>
> It's gotta be something simple that I'm overlooking
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: /admin redirects me to 127.0.0.1:8000/admin on nginx+gunicorn production server

2013-07-24 Thread Avraham Serour
Well, if it works on incognito mode you should try cleaning your cookies
On Jul 24, 2013 11:33 PM, "Daniel Oźminkowski" 
wrote:

> Hello again,
>
> I just had a WTF moment. I kept trying to access 192.168.1.4/admin which
> opened 0.0.0.0:8000 consistently for the last couple of hours (notice
> this is not localhost). Then I've read somewhere: "check with curl what
> kind of reponse you get directly from gunicorn". So I did and it was fine,
> I got the login form. Then I had a hunch - maybe it's something wrong with
> my browser, Chrome. Turns out I was right - it worked in incognito mode! I
> tried again with normal tab - again 0.0.0.0:8000. So I tried
> http://192.168.1.4/admin/ with the slash at the end and voila! Admin
> login form. Now even without the slash at the end I get the login form
> everytime.
>
> Please, somebody explain this to me. I wasted so much time on this, tried
> so many nginx configurations and I still don't know what I did wrong. It's
> voodoo. ;)
>
> Best regards,
> Daniel Ozminkowski
>
> 2013/7/18 Daniel Oźminkowski 
>
>> Hello,
>>
>> first I want to state, that I am a beginner and everything still works a
>> little like magic for me. I have always worked with django by running it
>> with runserver. Recently decided to put it on virtual machine and serve the
>> site with nginx + gunicorn. I understand how to serve static files and so
>> on. Even my app works. I hit the problem when I try to access built-in
>> admin interface. Everytime when I go to http://VMip/admin I get
>> redirected to http://127.0.0.1:8000/.
>>
>> I made sure that SITE_ID is the same in settings.py and the django_site
>> table.
>>
>> The server is on a VM, I access it by ip. Here is my nginx config in
>> sites-enabled/my_app.
>>
>> server {
>> server_name 192.168.0.112; # I noticed it doesn't matter. Nginx
>> serves the site even if VM ip changes... hmmm?
>> listen 80;
>>
>> root /home/daniel/www
>> index index.html index.htm
>> client_max_body_size 32M;
>> client_body_buffer_size 128k;
>> location /static/ {
>> root /home/daniel/www
>> }
>>
>> location / {
>> proxy_pass_header Server;
>> proxy_set_header Host $http_host;
>> proxy_redirect off;
>> proxy_set_header X-Real-IP $remote_addr;
>> proxy_set_header X-Scheme $scheme;
>> proxy_connect_timeout 10;
>> proxy_read_timeout 10;
>> proxy_pass http://localhost:8000/;
>> }
>> }
>>
>> I will be very grateful for any clues how to fix it. Thanks!
>>
>> Best regards,
>> Daniel
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/ZbtZ9d8YPXo/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: What client side html layout tools are people using to speed up template development?

2013-07-29 Thread Avraham Serour
I never used this yahoo lib bit it seems to me that you are looking for
twitter bootstrap or zurb foundation
On Jul 29, 2013 12:18 PM, "Sam Walters"  wrote:

> Its not specific to django however i have a few small projects on the
> horizon where i could really save time spent on the things im not good at:
>
> Graphic design CSS layouts, choosing fonts, colours that look good.
>
> What are the tools people are using for this these days? What are strong
> points of the system you are using?
>
> All this stuff will get partiitoned up and placed in my django templates.
>
> I used to use yahoo yui gris css, 960 grid system and a few other things a
> couple of years back. I assume there are better things i dont know about
> though.
>
> thanks in advance!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can't run manage.py runserver (Django 1.5.1)

2013-08-04 Thread Avraham Serour
try running with python 2.7, python 3 support is new


On Sun, Aug 4, 2013 at 9:38 PM, Anton Yermolenko
wrote:

> Hi guys
>
> i'm new to python as well as django. Seeking help for this problem
>
> I have python 3.3 installed and django 1.5.1 on win 7
> so when i run manage.py runserver i got this error message
>
> c:\mysite>python manage.py runserver
> Validating models...
>
> 0 errors found
> August 04, 2013 - 18:51:37
> Django version 1.5.1, using settings 'mysite.settings'
> Development server is running at http://127.0.0.1:8000/
> Quit the server with CTRL-BREAK.
> Error: 'utf-8' codec can't decode byte 0xc0 in position 0: invalid start
> byte
>
> Googling didn't help, unfortunately
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django for corporate web site

2013-08-06 Thread Avraham Serour
what is a corporate site exactly?

from what I understand a lawyer office website is nothing more than a bunch
of static pages, like a business card, you could use a cms, but you could
just generate some static pages


On Tue, Aug 6, 2013 at 11:41 AM, Sithembewena Lloyd Dube
wrote:

> Hi Sean,
>
> You definitely can do that in Django.
>
>
> On Tue, Aug 6, 2013 at 6:18 AM, Mike Dewhirst wrote:
>
>> On 6/08/2013 2:07pm, sean chen wrote:
>>
>>> I need to build a site for a small law firm. I looked at the poweredby
>>> pages http://www.djangosites.org/, but I found it shows sites for
>>> different purposes and I did not find a good example site for me to
>>> spark my thoughts further.
>>>
>>> I see there exists a focus area for e-commerce site at
>>> https://www.djangopackages.**com/grids/g/ecommerce/,
>>> is there a focus area
>>> for corporate websites?
>>>
>>
>> What do they want?
>>
>> Mike
>>
>>
>>
>>> Thanks,
>>> Sean
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to 
>>> django-users+unsubscribe@**googlegroups.com
>>> .
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at 
>>> http://groups.google.com/**group/django-users
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to 
>> django-users+unsubscribe@**googlegroups.com
>> .
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at 
>> http://groups.google.com/**group/django-users
>> .
>> For more options, visit 
>> https://groups.google.com/**groups/opt_out
>> .
>>
>>
>>
>
>
> --
> Regards,
> Sithu Lloyd Dube
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Install MySQL for Python Django on my Windows PC

2013-08-06 Thread Avraham Serour
for development just use sqlite


On Tue, Aug 6, 2013 at 6:38 PM, Glenn Vulkers <
luksindit-tjopt...@hotmail.com> wrote:

> Hello ,
>
> I'm wondering how I can install Mysql to use in Python Django on my
> Windows PC.
> I tried to install Ubuntu on a Virtual PC but it's just not working. So I
> managed to get Django
> on my Windows PC, but I cant go any further with working with it, because
> I don't have MySQL.
> I've looked around on the internet but couldn't find anything usefull, and
> the tutorials I've watched
> are based around MAC and Linux OS.
>
> I hope anyone can help me how I can install and use MySQL for Python on my
> Windows PC.
>
> Thanks :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
did you active the virtualenv?


On Sun, Aug 11, 2013 at 5:34 PM,  wrote:

> My python path shows among other
> paths, 
> /home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/.
> When I look into this dir, I find both south and
> South-0.8.2-py2.7.egg-info.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
what does pip freeze shows?


On Sun, Aug 11, 2013 at 5:42 PM, Alekto Antarctica <
alekto.antarct...@gmail.com> wrote:

> Yes, I have already activated the virtualenv project:
> *(django_project)*alekto@kalahari:~/Web/prosjekt/django_project$ sudo
> python manage.py syncdb
> ImportError: No module named south
>
>
>
> 2013/8/11 Avraham Serour 
>
>>  did you active the virtualenv?
>>
>>
>> On Sun, Aug 11, 2013 at 5:34 PM,  wrote:
>>
>>> My python path shows among other
>>> paths, 
>>> /home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/.
>>> When I look into this dir, I find both south and
>>> South-0.8.2-py2.7.egg-info.
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/-4DtF8rmZGc/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>>
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
from this it looks like the error is that you don't have the postgres
driver, nothing to do with south


On Sun, Aug 11, 2013 at 5:51 PM,  wrote:

> *So this is what I am getting if I run the python manage.py syncdb,
> without sudo:*
>
> (django_project)alekto@kalahari:~/Web/prosjekt/django_project$ python
> manage.py syncdb
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 453, in execute_from_command_line
> utility.execute()
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 272, in fetch_command
> klass = load_command_class(app_name, subcommand)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 77, in load_command_class
> module = import_module('%s.management.commands.%s' % (app_name, name))
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/utils/importlib.py",
> line 35, in import_module
> __import__(name)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/management/commands/__init__.py",
> line 12, in 
> from south.hacks import hacks
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/hacks/__init__.py",
> line 8, in 
> from south.hacks.django_1_0 import Hacks
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/hacks/django_1_0.py",
> line 7, in 
> from django.db.backends.creation import BaseDatabaseCreation
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/__init__.py",
> line 40, in 
> backend = load_backend(connection.settings_dict['ENGINE'])
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/__init__.py",
> line 34, in __getattr__
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/utils.py",
> line 93, in __getitem__
> backend = load_backend(db['ENGINE'])
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/utils.py",
> line 27, in load_backend
> return import_module('.base', backend_name)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/utils/importlib.py",
> line 35, in import_module
> __import__(name)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py",
> line 14, in 
> from django.db.backends.postgresql_psycopg2.creation import
> DatabaseCreation
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/creation.py",
> line 1, in 
> import psycopg2.extensions
> ImportError: No module named psycopg2.extensions
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
install psycopg2
btw, if you created the virtualenv you should need to sudo


On Sun, Aug 11, 2013 at 6:05 PM, Alekto Antarctica <
alekto.antarct...@gmail.com> wrote:

> (django_project)alekto@kalahari:~/Web/prosjekt/django_project$ pip freeze
> Django==1.5.1
> South==0.8.2
> argparse==1.2.1
> distribute==0.6.24
> wsgiref==0.1.2
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
the page 
hererecommends
installing the binaries, try sudo apt-get install python-psycopg2


On Sun, Aug 11, 2013 at 6:13 PM,  wrote:

> This is what I am gettin when trying to install psycopg2, still the same
> errors...
>
> (django_project)alekto@kalahari:~/Web/prosjekt/django_project$* pip
> install psycopg2*
> Downloading/unpacking psycopg2
>   Downloading psycopg2-2.5.1.tar.gz (684Kb): 684Kb downloaded
>   Running setup.py egg_info for package psycopg2
>
> Error: You need to install postgresql-server-dev-X.Y for building a
> server-side extension or libpq-dev for building a client-side application.
>
> Complete output from command python setup.py egg_info:
> running egg_info
>
> creating pip-egg-info/psycopg2.egg-info
>
> writing pip-egg-info/psycopg2.egg-info/PKG-INFO
>
> writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
>
> writing dependency_links to
> pip-egg-info/psycopg2.egg-info/dependency_links.txt
>
> writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
>
> warning: manifest_maker: standard file '-c' not found
>
>
>
> Error: You need to install postgresql-server-dev-X.Y for building a
> server-side extension or libpq-dev for building a client-side application.
>
>
>
> 
> Command python setup.py egg_info failed with error code 1 in
> /home/alekto/.virtualenv/django_project/build/psycopg2
> Storing complete log in /home/alekto/.pip/pip.log
> (django_project)alekto@kalahari:~/Web/prosjekt/django_project$ *python
> manage.py syncdb*
> Traceback (most recent call last):
>   File "manage.py", line 10, in 
> execute_from_command_line(sys.argv)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 453, in execute_from_command_line
> utility.execute()
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 272, in fetch_command
> klass = load_command_class(app_name, subcommand)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 77, in load_command_class
> module = import_module('%s.management.commands.%s' % (app_name, name))
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/utils/importlib.py",
> line 35, in import_module
> __import__(name)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/management/commands/__init__.py",
> line 12, in 
> from south.hacks import hacks
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/hacks/__init__.py",
> line 8, in 
> from south.hacks.django_1_0 import Hacks
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/hacks/django_1_0.py",
> line 7, in 
> from django.db.backends.creation import BaseDatabaseCreation
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/__init__.py",
> line 40, in 
> backend = load_backend(connection.settings_dict['ENGINE'])
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/__init__.py",
> line 34, in __getattr__
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/utils.py",
> line 93, in __getitem__
> backend = load_backend(db['ENGINE'])
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/utils.py",
> line 27, in load_backend
> return import_module('.base', backend_name)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/utils/importlib.py",
> line 35, in import_module
> __import__(name)
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py",
> line 14, in 
> from django.db.backends.postgresql_psycopg2.creation import
> DatabaseCreation
>   File
> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/creation.py",
> line 1, in 
> import psycopg2.extensions
> ImportError: No module named psycopg2.extensions
> (django_project)alekto@kalahari:~/Web/prosjekt/django_project$ *sudo
> python manage.py syncdb*
> [sudo] password for alekto:
> *ImportError: No module named south*
> (django_project)alekto@kalahari:~/Web/prosjekt/django_project$
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
try deleting no-global-site-packages.txt from the virtualenenv


On Sun, Aug 11, 2013 at 6:24 PM, Alekto Antarctica <
alekto.antarct...@gmail.com> wrote:

> Thank you, but that is already done. I did it when I first installed
> django.. so I am really confused
>
>
> 2013/8/11 Avraham Serour 
>
>> the page 
>> here<http://initd.org/psycopg/docs/install.html#install-from-package>recommends
>>  installing the binaries, try sudo apt-get install python-psycopg2
>>
>>
>> On Sun, Aug 11, 2013 at 6:13 PM,  wrote:
>>
>>> This is what I am gettin when trying to install psycopg2, still the same
>>> errors...
>>>
>>> (django_project)alekto@kalahari:~/Web/prosjekt/django_project$* pip
>>> install psycopg2*
>>> Downloading/unpacking psycopg2
>>>   Downloading psycopg2-2.5.1.tar.gz (684Kb): 684Kb downloaded
>>>   Running setup.py egg_info for package psycopg2
>>>
>>> Error: You need to install postgresql-server-dev-X.Y for building a
>>> server-side extension or libpq-dev for building a client-side application.
>>>
>>> Complete output from command python setup.py egg_info:
>>> running egg_info
>>>
>>> creating pip-egg-info/psycopg2.egg-info
>>>
>>> writing pip-egg-info/psycopg2.egg-info/PKG-INFO
>>>
>>> writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
>>>
>>> writing dependency_links to
>>> pip-egg-info/psycopg2.egg-info/dependency_links.txt
>>>
>>> writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
>>>
>>> warning: manifest_maker: standard file '-c' not found
>>>
>>>
>>>
>>> Error: You need to install postgresql-server-dev-X.Y for building a
>>> server-side extension or libpq-dev for building a client-side application.
>>>
>>>
>>>
>>> 
>>> Command python setup.py egg_info failed with error code 1 in
>>> /home/alekto/.virtualenv/django_project/build/psycopg2
>>> Storing complete log in /home/alekto/.pip/pip.log
>>> (django_project)alekto@kalahari:~/Web/prosjekt/django_project$ *python
>>> manage.py syncdb*
>>> Traceback (most recent call last):
>>>   File "manage.py", line 10, in 
>>> execute_from_command_line(sys.argv)
>>>   File
>>> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>> line 453, in execute_from_command_line
>>> utility.execute()
>>>   File
>>> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>> line 392, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File
>>> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>> line 272, in fetch_command
>>> klass = load_command_class(app_name, subcommand)
>>>   File
>>> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>> line 77, in load_command_class
>>> module = import_module('%s.management.commands.%s' % (app_name,
>>> name))
>>>   File
>>> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/utils/importlib.py",
>>> line 35, in import_module
>>> __import__(name)
>>>   File
>>> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/management/commands/__init__.py",
>>> line 12, in 
>>> from south.hacks import hacks
>>>   File
>>> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/hacks/__init__.py",
>>> line 8, in 
>>> from south.hacks.django_1_0 import Hacks
>>>   File
>>> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/south/hacks/django_1_0.py",
>>> line 7, in 
>>> from django.db.backends.creation import BaseDatabaseCreation
>>>   File
>>> "/home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/django/db/__init__.py",
>>> line 40, in 
>>> backend = load_backend(connection.settings_dict['ENGINE'])
>>>   File
>>> "/home/alekto/.virtualenv/django_project/local/lib/python

django-cms like model translation

2013-08-15 Thread Avraham Serour
Hi,

I'm making a site using django-cms with an app hook for django shop
this is a multilanguage site, so in settings.py I have

LANGUAGES = [
('pt-br', 'Portuguese'),
('en', 'English'),

]

so when adding a page, I have two tabs, one version of the page for each
language
I need to have translations for my product model also, I only found
this,
but this approach have two problems:
I am repeating myself on which languages I want, for each I add/remove I
need to migrate, this should work like the cms pagemodel
and a minor problem of inconvenience of the user of the admin page, it
would be nice to have the same interface (tab for each language)

I took a look at pagemodel.py but I failed to actually understand in order
to repeat, maybe I didn't have enough coffee

any thoughts?

thanks
avraham

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: message_set filter

2013-08-18 Thread Avraham Serour
so what's the question?


On Sat, Aug 17, 2013 at 7:52 AM, Karl Arunachal <
kakararunachalserv...@gmail.com> wrote:

> Hello,
> I have a model for messaging between the users.
>
> models.py:
>
> class Message(models.Model):
> description = models.TextField()
> date_added = models.DateTimeField(default=datetime.now)
> sender = models.ForeignKey(User, related_name='sent_set')
> recipient = models.ForeignKey(User, related_name='recieved_set')
>
> def __unicode__(self):
> return "%s sent message: %s to %s" % (self.sender, self.description, 
> self.recipient)
>
> def save(self, **kwargs):
> if self.sender == self.recipient:
> raise ValueError("Cannot message yourself")
> super(Message, self).save(**kwargs)
>
>
>
> Till now I get all the messages (sent/recieved) of a particular user,
>
> from django.db.models import Q
>
>
> A = request.usermsg = Message.objects.filter(Q(sender=A)|Q(recipient=A))
>
>
>
> Suppose, msg has all the messages sent and recieved for user 'A'. Now how
> would i filter from this 'msg',  all the message sent to and recieved from
> a particular user 'B'.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django signals to all connections?

2013-08-19 Thread Avraham Serour
maybe you can use a middleware to log access


On Mon, Aug 19, 2013 at 7:29 AM, Gerd Koetje wrote:

> Is is possible to start an event at all connected users with signals?
> If this is possible can someone show me an example of it.
>
>
> Greetz
> Gerd
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: online Django users directory ?

2013-08-20 Thread Avraham Serour
What for?
On Aug 21, 2013 12:04 AM, "Fabrice Romand"  wrote:

> Hi,
>
> Do you know any online Django users directory ?
>
> if not, will you support a such project ?
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django user (using django ORM) + SQLAlchemy for other db tables

2013-09-10 Thread Avraham Serour
why?


On Tue, Sep 10, 2013 at 7:34 PM, Dennis  wrote:

> Any advice (or potential problems) with using SQLAlchemy with the django
> framework but keeping the django user auth module?
>
> The django ORM would be used for the auth module (and its user table).
> SQLAlchemy ORM would be used for other tables and also to read (but not
> write) the django user table.
>
> This combination would allow the power of SQLAlchemy but maintain
> compatibility with django auth -- a sweet combination!
> Of course, the django admin system would likely not work, but that's ok.
>
> I thought this combination would work without being too much of a headache.
> But when I posted this on the SQLAlchemy google group for advice, the
> response was negative: they do not recommend using this combination:
> https://groups.google.com/forum/#!topic/sqlalchemy/VlR2At_mUcE
>
> But the django experts are on the django mailing list, so I thought I
> would ask this group too.
> Just wondering if others have tried this combination and what issues might
> have come up.
> From my google searching, the 2 references below (and their references)
> are really the only mention of this approach on the web!
> So, it would be great to get some definitive advice on this seemly
> reasonable approach.
>
> This approach is described in the stackoverflow comment here:
> http://stackoverflow.com/**questions/18465197/how-do-i-**
> start-with-django-orm-to-**easily-switch-to-sqlalchemy#**
> comment27166795_18476898
>
> The method to integrate SQLAlchemy into django is described here:
> http://stackoverflow.com/**questions/6606725/best-way-to-**
> integrate-sqlalchemy-into-a-**django-project
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django user (using django ORM) + SQLAlchemy for other db tables

2013-09-10 Thread Avraham Serour
from what I understand SQLAlchemy is an ORM, which django already have, I
would assume you need something specific in the "power" that django's ORM
doesn't have.

so again I question why? what exactly do you need in SQLAlchemy? also
what's so special about django auth? you could easily create your own
custom auth relying on SQLAlchemy.

also in a crazy case that one would like to use SQLAlchemy inside django
just because he is more familiar with for example it is not necessarily
mutually exclusive, you could create the models with django and map
in SQLAlchemy to query, or vice versa.




On Tue, Sep 10, 2013 at 8:37 PM, Dennis  wrote:

> This combination would allow the power of SQLAlchemy but maintain
> compatibility with django auth -- a sweet combination!
>
>
> On Wednesday, September 11, 2013 1:30:12 AM UTC+8, אברהם סרור wrote:
>
>> why?
>>
>>
>> On Tue, Sep 10, 2013 at 7:34 PM, Dennis  wrote:
>>
>>> Any advice (or potential problems) with using SQLAlchemy with the django
>>> framework but keeping the django user auth module?
>>>
>>> The django ORM would be used for the auth module (and its user table).
>>> SQLAlchemy ORM would be used for other tables and also to read (but not
>>> write) the django user table.
>>>
>>> This combination would allow the power of SQLAlchemy but maintain
>>> compatibility with django auth -- a sweet combination!
>>> Of course, the django admin system would likely not work, but that's ok.
>>>
>>> I thought this combination would work without being too much of a
>>> headache.
>>> But when I posted this on the SQLAlchemy google group for advice, the
>>> response was negative: they do not recommend using this combination:
>>> https://groups.google.com/**forum/#!topic/sqlalchemy/**VlR2At_mUcE
>>>
>>> But the django experts are on the django mailing list, so I thought I
>>> would ask this group too.
>>> Just wondering if others have tried this combination and what issues
>>> might have come up.
>>> From my google searching, the 2 references below (and their references)
>>> are really the only mention of this approach on the web!
>>> So, it would be great to get some definitive advice on this seemly
>>> reasonable approach.
>>>
>>> This approach is described in the stackoverflow comment here:
>>> http://stackoverflow.com/**quest**ions/18465197/how-do-i-**start-**
>>> with-django-orm-to-**easily-**switch-to-sqlalchemy#**comment27**
>>> 166795_18476898
>>>
>>> The method to integrate SQLAlchemy into django is described here:
>>> http://stackoverflow.com/**quest**ions/6606725/best-way-to-**integ**
>>> rate-sqlalchemy-into-a-**django-**project
>>>
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@**googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/django-users
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Reliable and cheap hosting for simple webapp in Django

2013-09-10 Thread Avraham Serour
try webfaction or digitalocean


On Wed, Sep 11, 2013 at 12:55 AM, Andre Lopes wrote:

> Hi all,
>
> I'm stuck with Django hosting. I've A2hosting but the Django hosting
> is not good at all.
>
> They use FCGI and Passenger and both have a problem.
>
> If I'm more than 15min without doing a request to the site, the first
> request is very slow and most of the time will do an Internal Server
> Error.
>
> There is any Django hosting on the cheap that works without this kind
> of problems? The website have 5/10 visits a day.
>
> I wait for reply.
>
> Best Regards,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Reliable and cheap hosting for simple webapp in Django

2013-09-10 Thread Avraham Serour
you asked cheap not free, in any case if you already found something that
fits you why waste the time of others?


On Wed, Sep 11, 2013 at 1:05 AM, Andre Lopes  wrote:

> I'm visiting the Heroku webpage. I can get freehosting there. Any
> experience on what can I get from Heroku freehosting. The website have
> 5/10 visits a day.
>
> On Tue, Sep 10, 2013 at 10:57 PM, Avraham Serour 
> wrote:
> > try webfaction or digitalocean
> >
> >
> > On Wed, Sep 11, 2013 at 12:55 AM, Andre Lopes 
> > wrote:
> >>
> >> Hi all,
> >>
> >> I'm stuck with Django hosting. I've A2hosting but the Django hosting
> >> is not good at all.
> >>
> >> They use FCGI and Passenger and both have a problem.
> >>
> >> If I'm more than 15min without doing a request to the site, the first
> >> request is very slow and most of the time will do an Internal Server
> >> Error.
> >>
> >> There is any Django hosting on the cheap that works without this kind
> >> of problems? The website have 5/10 visits a day.
> >>
> >> I wait for reply.
> >>
> >> Best Regards,
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Django users" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to django-users+unsubscr...@googlegroups.com.
> >> To post to this group, send email to django-users@googlegroups.com.
> >> Visit this group at http://groups.google.com/group/django-users.
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to django-users+unsubscr...@googlegroups.com.
> > To post to this group, send email to django-users@googlegroups.com.
> > Visit this group at http://groups.google.com/group/django-users.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How do I create a standalone python application that uses the django environment (e.g. the ORM etc...)?

2013-09-16 Thread Avraham Serour
the question is what for? other than the ORM what else is useful for a
desktop app?
if it is only the ORM you want take a look at http://www.sqlalchemy.org/


On Mon, Sep 16, 2013 at 7:17 PM, Brad Pitcher  wrote:

> You need to do something like this before import django stuff:
>
> import os
> import sys
>
> sys.path.append(os.path.abspath(os.path.dirname(__file__)))
> os.environ['DJANGO_SETTINGS_MODULE'] = 'web.settings'
>
>
> -
> Brad Pitcher
>
>
> On Mon, Sep 16, 2013 at 8:19 AM, Nigel Legg  wrote:
>
>> Shouldn't it be
>>
>>from django.db import models
>>
>> ??
>>
>> Cheers, Nigel
>> 07914 740972
>>
>>
>>
>> On 16 September 2013 15:25, DJ-Tom  wrote:
>>
>>> For reporting purposes I want to use List & Label from Combit. The
>>> web/online part is no big deal since the reporting module can be run
>>> without user interface (creating Excel or PDF files)
>>>
>>> But the actual form designer part that is used to define the report
>>> layout is a windows GUI application, so I would like to have a python file
>>> inside my Django app that I can call to start the designer part on my local
>>> machine.
>>>
>>> I have now read a bunch of descriptions on how to use Django in a
>>> standalone application but did not succeed so far in actually running my
>>> form designer.
>>>
>>> This is what I currently have, i tried to start this via "python
>>> formdesigner.py", after activating the correct virtualenv:
>>>
>>> from Tkinter import *
>>> from ctypes import *
>>> import django
>>> from models import *
>>>
>>> LL = windll.cmll18
>>>
>>> ### Declaration of application class omitted, this is plain python  
>>>
>>> app = Application()
>>> app.master.title("List & Label sample application")
>>> app.mainloop()
>>>
>>>
>>> Regardless what I try, I can't get the model class import to work.
>>>
>>> I also tried SET DJANGO_SETTINGS_MODULE=settings and project.settings
>>> and project.app.settings... nothing worked.
>>>
>>> thomas
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/django-users.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Help with Django installation on windows

2013-09-21 Thread Avraham Serour
you should use pip to install python
packages, after you have pip you can use "pip install django"

eventually it is worth to take a look at virtualenv so you can have
separate environments and packages for each project

in any case you should use "python django-admin.py startproject mysite"
assuming python is on path and also django-admin.py
if not you may use the full path for both:

c:\python27\python.exe c:\python27\scripts\django-admin.py



On Sat, Sep 21, 2013 at 11:27 PM, Poom Buncha  wrote:

> Hi all
>
> First off, I like to say that I am a beginner to everything related to
> computing. So I have to appologize a head of time if what I am asking is
> common sense.
> I'm trying to install Django on my windows computer
>
> So I install Python 2.7 (and went throught the tutorial)
> I downloaded the django tar file. and extracted the content using 7zip
> program.
> I did not know where to put it so I put it into the Python folder
>
> when I open up a comand prompt for python I type in "import django"
> and "django.get_version()" those commands seem to run fine
> but when I type in
> "django-admin.py startproject mysite" I get an error message that say the
> name admin is not define. Can you tell me what I am doing wrong?
>
> Thank you for any help you can provide. And if anyone have any tip and
> best practices that they can share with me about getting started in Django
> it will be greatly appreciated
> Poom B
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Mysterious error messages

2013-09-22 Thread Avraham Serour
really? how many times do you need to send and resend and cross post?


On Sun, Sep 22, 2013 at 1:23 PM,  wrote:

> Everyday i receive 5-10 mysterious error messages of this kind
>
> ... ERRORS.
>
>   File
> "../satchmo/satchmo/apps/satchmo_store/shop/context_processors.py",
> line 31, in settings
> 'shop_name': shop_config.store_name,
>
> AttributeError: 'NoneType' object has no attribute 'store_name'
>
>
>  path:/plugins/tinymce_plugin/tiny_mce/plugins/more/editor_plugin.js,
> GET:,
> POST:,
>
> 
>
>   File
> ".../satchmo/satchmo/apps/satchmo_store/shop/context_processors.py", line
> 31, in settings
> 'shop_name': shop_config.store_name,
>
> AttributeError: 'NoneType' object has no attribute 'store_name'
>
>
>  path:/admin/login.aspx,
> GET:,
>
> 
>
>   File "/django/db/backends/postgresql_psycopg2/base.py", line 52, in
> execute
> return self.cursor.execute(query, args)
>
> DatabaseError: server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
>
>
>
>  path:/art_folder/text-image_Series-1.jpg,
> GET:,
> POST:,
>
> 
>
> 
>
> 
>
> ...END ERRORS..
>
> All of them do not depend by my code but by django/satchmo source code,
> and never rise on developing serverbut the thing I don't understand is
> paths I have no paths like them...Why it does not give "page not found"
> but Errors ??
> If i give that url in browser it correctly gives me "page not
> found"
>
> Thank you
>
> Alkatron
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: "no such column" database error in admin

2013-09-23 Thread Avraham Serour
it looks like you changed the model after running syncdb, syncdb is able to
create tables but not to add or remove columns.

for that you should take a look at south, it is called database migrations.

you may also delete the database and recreate


On Mon, Sep 23, 2013 at 10:53 AM, Beverly Block
wrote:

> I'm trying to use the admin interface, and while it's working for my User
> object, when I try to access the Event object I get this:
>
> Request Method: GET  Request URL: http://localhost:8000/admin/test1/event/  
> Django
> Version: 1.5.4  Exception Type: DatabaseError  Exception Value:
>
> no such column: test1_event.track
>
>  Exception Location: 
> C:\Python33\lib\site-packages\django\db\backends\sqlite3\base.py
> in execute, line 362  Python Executable: C:\Python33\python.exe  Python
> Version: 3.3.2
> Event does have a foreign key referencing User; I've seen other posts
> about that causing complications, but not this specific one.
>
> I've tried resyncing the db, but it doesn't help.
>
> Thoughts?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: 403 Forbidden messages when saving items in django-admin

2013-10-06 Thread Avraham Serour
> You don't have permission
the error seems to be fairly descriptive.
you need to log in the django admin as superuser and grant permission to
the users


On Sun, Oct 6, 2013 at 1:48 PM, Alban Hertroys  wrote:

> Howdy,
>
> I run a Django website for some people that's hosted on a remote site. The
> issue I'm running into is that in the django admin section (the contrib
> module) my users get a 403 Forbidden message every time they save an item
> by pressing the "Save" submit-button:
>
> Forbidden
>> You don't have permission to access /admin/Article/newsitem/10/ on this
>> server.
>> Additionally, a 403 Forbidden error was encountered while trying to use
>> an ErrorDocument to handle the request.
>
>
> The odd thing is that when I look at the list of items (in the above case
> news-items), the item that they attempted to save is there. Nothing about
> it seems to be missing, even uploaded images are where they're supposed to
> be.
>
> This leads me to believe that it's actually a redirect that occurs after
> processing the POST request that is causing those 403 errors, but that
> would seem to be something internal to the admin contrib module?
>
> Is this familiar to anyone or do you have any good suggestions of where to
> start digging?
>
> The site is hosted remotely and I only have FTP access to it, so I can't
> verify a whole lot. If it's not something in my code or in the file
> structure, I'll have to pass the question on to the server admin who is not
> familiar with Django.
> I'm fairly confident that the site is running Django 1.4.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a4b47ccc-f8e2-40a8-856c-ea7bfe7cfd99%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tK_ED2m14AZ-2QEcSEaBo3nH7Liq%2B_7V4kb156U14uc0g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Loading data from Django into RedShift - ORM vs SQL?

2013-10-17 Thread Avraham Serour
The whole idea of having an ORM is not having ot deal with SQL directly
unless necessary. I would try to do it using the ORM first but there's not
general rule, each case should be analised individually


On Thu, Oct 17, 2013 at 10:21 AM, Victor Hooi  wrote:

> Hi,
>
> We have a Django eCommerce site, from where we want to load transactional
> data into Amazon RedShift (i.e. basically ETL).
>
> This would probably be a batch load run either once a day, or at intervals
> throughout the day.
>
> (I'm also curious about whether it's possible to stream the data in, but I
> don't think that will work well with RedShift).
>
> My question is regarding how we should be extracting the data - we can
> either hook directly into the Django ORM, or just use SQL by hand.
>
> What are people's experiences with either approach? Any thoughts on
> pros/cons of either?
>
> Cheers,
> Victor
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c020f34a-37c0-4259-9251-dd5ccad00968%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tJJFnDvbPLYHjTrYRWnpegEw81GiniBTA4vJ5U5QC1Ynw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Advice for new Dev - package or roll own

2013-10-24 Thread Avraham Serour
I think it does make sense to plug a shop app in the project rather than
making something from zero, if the project has that much need for
customization than it would make sense to use a more lightweight  app.

Same question could be asked if it make sense to develop my solution using
a framework like django or to make my own?

Either way even a more complete solution like satchmo shouldn't be a burden
to integrate in your project, just don't try to copy the code and change
it, (you could miss future updates or buy the headache to merge your fork
all the time) rather you can easily plug in.

for example:
If you need some custom fields in the product model, instead of changing
the shop model you can create your own in your models.py with the extra
fields you need and add a foreign key to the shop product model.

success


On Thu, Oct 24, 2013 at 8:25 PM, James P  wrote:

> A little help / advice is needed here.
>
> I am getting back into web development since before the days of nice
> frameworks and decided to learn Python and use Django to get my web app
> going. My app has quite a few e-commerce features, but the
> cart/ordering/shipping/tracking aspect of my app is maybe 20% of the code,
> the rest is based on custom business logic. My question is this:
>
> I've done some research on Django packages like Oscar, Satchmo,
> Django-shop etc. heavyweight to lightweight packages. But since I have
> quite a bit of design that goes beyond simple cart/ordering logic: *Does
> it make sense to learn how to integrate a new package into my design vs.
> roll my own?* I’ve done shopping cart/etc before, but I would like to
> shave time off the development if I can. But I am still learning all the
> ins and outs of Django, the ORM etc. I don’t want to spend 2 weeks learning
> how to integrate a Django package when I could just spend 2 weeks rolling
> my own. But maybe I’m mistaking how much work it will take to roll my own
> cart/ordering/tracking logic.
>
> I have done it before in Java/jsp completely by hand, it was somewhat
> onerous but I am now running with the assumption that Django will allievate
> some of the pain I used to go through with all the BS CRUDS, home-made MVC
> logic I had to do back in 2001.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/eced6cd4-c093-4293-98fa-122155b8055e%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tJogqiBN6nbqgbr6nPxAGoarfhtZpg14URrcJXVRTH7bg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: difference in datetime aggregation when using sqlite3 instead of mysql

2013-10-26 Thread Avraham Serour
Using sqlite for dev is common practive, don't worry, it is not naive to do
it.
I remember seeing somehing about contenttypes and sqlite, I'm too hungry to
remember now, maybe someone else in the list can give a better input than
me.

on the query result just do a if DEBUG or if DEVELOPMENT or if
backend==sqlite or if returned type == string then create a datetime object
from the string.


On Sat, Oct 26, 2013 at 9:47 PM, Wesley George wrote:

> I'm working on a django application that uses the mysql backend in
> production but the sqlite3 db backend during dev to speed up testing.
>
> I was surprised to find these backends differ when populating extra model
> fields with aggregated datetimes. Specifically, if you use Queryset.extra
> to create a field that is a maximum of some datetime objects, the sqlite
> django backend makes this field a string, while the mysql backend makes
> this field a datetime object. I've put a minimal django app at github (
> here ) that
> exemplifies this difference on my setup, Django 1.5.1, python 2.7.4, Ubuntu
> 13.04.
>
> I know there are situations where these backends will behave differently,
> I took the above aggregation operation to be basic enough that this
> shouldn't be such a situation. The django docs on database 
> backendsnote an
> old bug concerning date aggregation with sqlite in 
> windows,
> but I didn't think this should apply.
>
> I'd love to hear from some other Django users. For example,
>
>- Is this behaviour expected?
>   - (was I naive in subbing the sqlite backend in during development?)
>- Is this a known bug?
>- Is there a better way to use django's ORM to accomplish what I'm
>doing?
>   - (e.g. create a full-fledged DateTime field on the model, that
>   must be kept up to date when the other table is updated).
>
> All comments appreciated!
>
> Wes
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/205179bf-a853-424a-9a8e-8b3297ab856c%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tL2oALzmL1PsWW90OU3BKFeQZ2Qmyr1fWyNbzbFVYNGmw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Multiple logins

2013-11-01 Thread Avraham Serour
are you using sqlite?


On Fri, Nov 1, 2013 at 6:52 AM, amanjot kaur wrote:

> In my django app if two users are login in the same account and are
> registering two different clients then both the clients are added
> under the same client id but it should register under different client
> ids. So what should I do for that.
>
> --
> Amanjot Kaur
>
> Blog: kauramanjot35.wordpress.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOUPv3%3DLEBN%3DU6OJ-m_k8maaOtFBWS5huvLz2%2BAkUK%3DgL%3DgC-A%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tLKCuMkzMWLn69i3PSZ-UDSGpeouQzyLiA7e79eL_xKzA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Invitations Apps

2013-11-07 Thread Avraham Serour
You could create a invitation model, I don't see the problem
but maybe you don't even need to, if all you want is for a user to ask the
server to send some emails you can just do that: let the user ask the
server to send emails.


On Thu, Nov 7, 2013 at 11:43 PM, Rafael E. Ferrero  wrote:

> Im doing a project where visitors can registers with his social accounts
> (this it can be done with AllAuth in a very simple way)
> When a visitor get registered the system he can create a group. (this is
> not a problem too)
> But... a registered visitor can invitate, by email, to other people to
> join in his group. The idea is that these guest can login with his own
> social accounts too, So here's the problem, AllAuth make it easy to login
> with social accounts but does not manage invitations.
>  I do not want to reinvent the wheel but if nobody did this before I'm
> afraid that i have to put my hands in the dough.
>
> Cheers !
>
>
> 2013/11/7 Amirouche Boubekki 
>
>> Héllo Rafael,
>>
>>
>> I don't know those particular applications, so I can't help. Do you have
>> a specific problem?
>>
>>
>> 2013/11/7 Rafael E. Ferrero 
>>
>>> No body can help me?
>>>
>>>
>>> 2013/11/7 Rafael E. Ferrero 
>>>
>>>
 Has someone used some invitation app for django like django-invitation
 [1]... and more, has someone integrated something like that with AllAuth
 [2] ??

 In a project I need visitors to register on the site with their social
 accounts. Once registered the system will create a group which will own
 . Then the owner of the group may invite people to integrate this group
 . Those who respond to the invitation may log in with their social
 accounts too. Guests can not create groups, because they are guests.

 Someon has some tips for me?

 Thanks a lot!


 [1] https://bitbucket.org/david/django-invitation/wiki/Home

>>>
>>
>>
>>
>>>  [2] https://github.com/pennersr/django-allauth

>>>
>> I don't know this application, I know about:
>>
>> - python-social-auth
>> - http://peterhudec.github.io/authomatic/ something like that
>>
>> Both are nice and probably work but I couldn't use because I did not use
>> django for this specific project and they did not integrate well.
>>
>>
>> Hope this helps,
>>
>>
>>
>> Amirouche
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAL7_Mo9nHfUbR-OrvOjLALUZmeqqSKePbhzYuZXzOcxUaFC%3DJg%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Rafael E. Ferrero
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJJc_8XfAHskv35fZw%3D-GMT16%2Bvp%3DcU0W9BCokOm_Y158N0pHA%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tKeyH5SbfN9zMZUv2b4QsfsCSNubmZpu-3azozr-u-fmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django website migration from live server to localhost

2013-11-09 Thread Avraham Serour
exactly the same error? maybe it is complaining about another missing lib?


On Sat, Nov 9, 2013 at 9:17 PM, IR. T  wrote:

> Thanks Klifford for quick response , i have installed pip already and also
> installed parse from pip but i am still geting the same error, any other
> suggestions?
>
> On Saturday, November 9, 2013 10:12:26 PM UTC+5, CLIFFORD ILKAY wrote:
>>
>>  On 11/09/2013 11:06 AM, IR. T wrote:
>>
>>File "build\bdist.win32\egg\openid\oidutil.py", line 16, in 
>> ImportError: No module named parse
>>
>>
>> "pip install parse" should do the trick. If you're not using pip, see:
>> > install-pip-on-windows>and
>> 
>> .
>>
>> --
>> Regards,
>>
>> Clifford Ilkay
>>
>> 647-778-8696
>>
>> Dinamis
>>  
>>
>>   --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4721e7bb-54ba-4d6b-9ae2-cefd86906119%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6t%2BfE-FCEOzYVO-mSONajVRXPmcg_jE0FPcE_mnXVroA%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Fabric for dependency management, testing strategy

2013-11-11 Thread Avraham Serour
for dependency management you should use pip, first step is to go through
the docs for fabric (and pip)
also you should google for best practices


On Mon, Nov 11, 2013 at 4:40 PM, Kannan  wrote:

> Hi Guys,
> I am new to Fabric. Please send me  your thoughts of using Fabric for
> dependency management and also about the testing strategy.
>
>
> Additionally, Please send me tutorials or links or something that can
> start with.
>
>
>
>
> With regards,
> Kannan
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL4xV_B_vxCBop5AgEjcyCzj6RiPHVW3cV0PxfgDEuRHzM3ifQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tLB9FOhVrVvr7ydAkojmPTp8s_20%2BFO1N22cTnLXJcW_A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Stroring images in the database

2013-11-12 Thread Avraham Serour
I believe 1.6 has a binary field, no need for an external solution, but
again, do you really need to store the image in the DB? for most cases
ImageField is enough, it stores the path so apache/nginx can serve the
image directly


On Tue, Nov 12, 2013 at 4:30 PM, Javier Guerra Giraldez
wrote:

> On Tue, Nov 12, 2013 at 8:57 AM, m1chael  wrote:
> > People have always recommended to me that storing images directly in a
> > database is a bad idea.
>
>
> it IS a bad idea, but that doesn't mean it shouldn't be possible.
>
> there are several Storage subclasses that do that, and it's not hard
> to do another one.  The original question seems to use one of these,
> but it's not clear exactly which one.
>
> --
> Javier
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFkDaoT-uEyeZgvrwre6RbNKHwL1nfV-1THGS5biC40_R_A-Jw%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tLB%3Dp4fmu-5e4qKajGS8c-pBj%3D7rg3csVNo5aMfZ1pO8g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Startproject failing on Django 1.6

2013-11-12 Thread Avraham Serour
why are you using this font/size? it hurts my eyes trying to read and makes
understanding difficult

in any case, you didn't need to wait for 1.6 to be released, if your
objective is to learn and you are not deploying production systems yet you
could use the RC, or if before that you could use the beta or before that
the dev trunk or even use python 2.7 in the meantime, nothing wrong with
that.

how did you install django? I recommend using pip to install python packages

success
avraham


On Tue, Nov 12, 2013 at 7:14 PM, Steve Sawyer  wrote:

> Django 1.6
> Python 3.3
> Windows 7 pro
>
> I've been anxiously awaiting Django 1.6 as I've been learning Python 3 for 
> the last year.
>
> I tried unsuccessfully to go through the tutorial using Django 1.5.5, and 
> figured I should wait
> for 1.6 to be released so I could avoid having to research and resolve 
> version incompatibility issues.
>
> However, today I removed my prior Django installation, successfully installed 
> Django 1.6, and
>
> started into the tutorial, but am again failing on this step:
>
> django-admin.py startproject mysite
>
> I'm getting an ImportError: No module named 'http.cookies'
>
> Note that I've verified that I have a folder named 'http', that this folder 
> is in my PYTHONPATH, that it
>
> contains a module named cookies.py and that the folder contains an 
> __init__.py file.
>
> Any suggestions as to what I need to do to resolve this? I'm not making much 
> progress with the tutorial! :-)
>
>
> Thanks.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3611ff1b-c2a6-4270-b888-1234b91d1d09%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tJFCFFGv-uRZKMT0kg7e%2BSE%3DvcEZO%3D4swS6KNvA8x-UJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: wsgi vs. debug server URL's

2013-11-12 Thread Avraham Serour
it seems to me that this is on your apache configuration nothing to do with
django or your application


On Tue, Nov 12, 2013 at 7:42 PM, Sells, Fred
wrote:

>  We deploy with Apache and it serves both django and generic html.  We
> are a small shop with internal applications and minimal server load and we
> are not ready to have a django server and an html server.
>
>
>
> I use the /wsgi  prefix in my url’s to identify what goes to django (via
> the httpd wsgi.conf file)
>
>
>
> When I deploy with wsgi in production my urls look like
> http://myserver.mydomain.com/wsgi/myapp
>
>
>
> But when running the debug server I get http://localhost/myapp
>
>
>
> Is there a clean way to handle this without having to define the “/wsgi”
> prefix and use it conditionally based on whether I’m Unix (production) or
> Windows (debug)???
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/DCD75728F460F14586086EA606E83082E71EA5D3%40ACEVXCHMBX1001.ADVENTISTCORP.NET
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tLBsbW5mL7ywbi%2BHs%2BVRdmd6BYLPZMVbKwmCAffwYq0Lg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: ImportError at /admin/

2013-11-14 Thread Avraham Serour
somewhere you are trying to do a 'import views' and python can't find
nothing with this name,

try using from appname import views


On Thu, Nov 14, 2013 at 12:25 PM, Swastik Acharya wrote:

> I m trying to read the html pages
> but it shows the folowiing error::
> mportError at /admin/
>
> No module named views
>
> Request Method:GET Request URL:http://127.0.0.1:8050/admin/ Django
> Version:1.4.10Exception Type: ImportErrorException Value:
>
>
> No module named views
>
> Exception 
> Location:/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py
> in import_module, line 35 Python Executable:/usr/bin/python Python
> Version:2.7.2Python Path:
>
> ['/home/swastik/Desktop/django1/vxlp',
>  '/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']
>
> Server time: Thu, 14 Nov 2013 04:18:10 -0600
> Traceback Switch to copy-and-paste view 
>
>- /usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py
> in get_response
>1.
>
>   response = callback(request, *callback_args, 
> **callback_kwargs)
>
>   ...
>▶ Local vars 
>- /usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py
> in wrapper
>1.
>
>   return self.admin_view(view, cacheable)(*args, **kwargs)
>
>   ...
>▶ Local vars 
>- /usr/local/lib/python2.7/dist-packages/django/utils/decorators.py in
>_wrapped_view
>1.
>
>   response = view_func(request, *args, **kwargs)
>
>   ...
>▶ Local vars 
>-
>/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py
> in _wrapped_view_func
>1.
>
>   response = view_func(request, *args, **kwargs)
>
>   ...
>▶ Local vars 
>- /usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py
> in inner
>1.
>
>  current_app=self.name):
>
>   ...
>▶ Local vars 
>- /usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py
> in reverse
>1.
>
>   app_list = resolver.app_dict[ns]
>
>   ...
>▶ Local vars 
>- /usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py
> in app_dict
>1.
>
>   self._populate()
>
>   ...
>▶ Local vars 
>- /usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py
> in _populate
>1.
>
>   lookups.appendlist(pattern.callback, (bits, p_pattern, 
> pattern.default_args))
>
>   ...
>▶ Local vars 
>- /usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py
> in callback
>1.
>
>   self._callback = get_callable(self._callback_str)
>
>   ...
>▶ Local vars 
>- /usr/local/lib/python2.7/dist-packages/django/utils/functional.py in
>wrapper
>1.
>
>   result = func(*args)
>
>   ...
>▶ Local vars 
>- /usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py
> in get_callable
>1.
>
>   lookup_view = getattr(import_module(mod_name), 
> func_name)
>
>   ...
>▶ Local vars 
>- /usr/local/lib/python2.7/dist-packages/django/utils/importlib.py in
>import_module
>1.
>
>   __import__(name)
>
>   ...
>▶ Local vars 
>
>
> how to solve this error??
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1281eb8c-e338-4d8b-aabd-984fcb684f85%40googlegroups.com
> .
> F

Re: block php requests

2015-01-20 Thread Avraham Serour
you can tell apache to get any request ending with .php and return 404 from
apache without passing the request to django
you could return something else like 403 and ban the ip for some time

On Tue, Jan 20, 2015 at 1:55 PM, hinnack  wrote:

> Hi,
>
> I get a lot of intrusion checks on my website - especially for PHP
> (wordpress, joomla, …).
> Today they all raise a 404 errors in python-django - so if you have emails
> enabled for 404 errors…
>
> What is the best way to block those requests in a standard apache
> deployment?
> ( https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/modwsgi/ )
>
> regards
>
> Hinnack
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6ae3fac4-4de2-4b26-8fce-aafb84c6a01a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tLK5_v3u5TVosTcdTKd5xumbVVm1oxLjrnJ%2BXdgu5LjcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is Django suitable for this purpose?

2015-01-20 Thread Avraham Serour
I'm not sure what kind of answers you expect by asking if django is the
best tool on a django forum...

In any case, of course it is possible to do this in django, it all depends
on you, django is just a framework but you still need to connect the dots

the time lag would only depend on how you code your system and your
resources, django should not be on your way

good luck

On Tue, Jan 20, 2015 at 11:52 PM, Mike Taylor  wrote:

> I want to have an appointment booking option built into a website for a
> clinic.
>
> The feature needs to integrate with the software that runs their office (
> http://www.atlaschirosys.com/)
>
> In order to be fully useful, it would need to be virtually instantaneous
> in filling the requested appointment spot.  A time lag of more than a
> couple minutes would not be acceptable.
>
> So, is this even possible and is Django the best tool for building it?
>
> Thank you for ANY input.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/15b83a17-8329-4fe0-afde-6f7b40345528%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tJ-2hkz7S8%3D1sJM1n-qz_bNC8WckyU6gXretwi_oxrAog%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django web hosts in Canada

2015-01-29 Thread Avraham Serour
look for a vps and not a shared hosting, something like what you would get
with AWS

on the downside you will need to do everything yourself (installing and
configuring all the libraries, updating the server etc)

on the plus side it will be more flexible, it will support anything you
would like

On Thu, Jan 29, 2015 at 5:09 PM, jogaserbia  wrote:

> Hi All,
>
> I would like to deploy my first Django website in the next month or so.  I
> am looking at deployment options, but need some clarification.
>
> 1) when id doesn't matter where the servers are
>
> I understand that  in terms of PASS: heroku, AWS, and Google elastic
> beanstalk can all handle Django (python) and postres.
>
> If I want to host on a 'normal' hosting service, which would be available?
> greengeeks just told me that they support Python but not Django, which
> confused me because I thought Django was fully written in Python, so I am
> clearly not understanding the complexities of deploying.  Also, they only
> use MYSQL databases, I wrote my first app using Postgres/POSTGIS as the
> database.
>
> 2) when I need servers in Canada
>
> Due to privacy concerns, I may need to use servers that are exclusively in
> Canada.  I cannot seem to find any options on how to host Python/Django and
> postres on Canadian servers.  Does anyone have any pointers on that?
>
>
> Any advice would be appreciated, as this will be my first run at deploying.
>
> I have been through the heroku example, and it seems nice and easy to
> deploy and I can use Django and they use postgres.
>
> Ivan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d489e516-94d8-46e2-a212-438faa404452%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tLOviREvHPDT_G8K_q4E_g_NrpQuPuKKDHguE0ra%3D6isw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reduce start up time for manage.py

2015-01-30 Thread Avraham Serour
I believe putting imports inside functions would slow down execution, it
will make the import everytime the function is executed

one could make something like a lazy import, but you would be trading slow
startup for slow requests

On Fri, Jan 30, 2015 at 3:49 PM, Collin Anderson 
wrote:

> Hi,
>
> Many people would recommend against this, but if you can put the imports
> for your heavy 3rd party libraries inside functions and methods, that allow
> them to be loaded only if needed.
>
> I would also recommend in general to simply have fewer libraries and apps
> (easier said than done :)
>
> Also, is it slow only for the first load, or are repeated loads slow too?
>
> I hope you aren't doing database queries or other expensive calls on
> startup.
>
> Try putting this at the top of your manage.py to see more of what's going
> on
>
> import logging; logging.basicConfig(level=logging.DEBUG)
>
> Collin
>
> If you want some benchmarks, here are some of my websites
> 221243 function calls (214987 primitive calls) in 0.394 seconds
> 448659 function calls (437433 primitive calls) in 0.611 seconds
> 698349 function calls (687730 primitive calls) in 0.749 seconds
>
> On Wednesday, January 28, 2015 at 4:42:09 AM UTC-5, chj wrote:
>>
>> Hi,
>>
>> I'm having a quite large Django project with dozens of apps and many
>> reusable third-party libraries. All the custom management commands (being
>> used with manage.py ) take a long time to be executed, since the
>> start up sequence takes between 3 and 5 seconds. Using the cProfile module
>> I was able to see that quite a lot of function calls are executed and it
>> looks like that every app is loaded, including its libraries and such
>> before the actual management command is executed. Is there any common way
>> to speed that up (e.g. by not loading apps/libraries that are not required
>> for a specific management command)? Django 1.7+ is used on Python 3.4.
>>
>> Output from `python3 -m cProfile manage.py` (truncated): 1100697
>> function calls (1064507 primitive calls) in 5.172 seconds
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0ac3ca3d-78a5-49bf-be96-05bc0017bf40%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6t%2BWW%2B4C-wuFxQY-nQfTviD7pRZRoMk5RxFC2j_AF3KWZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: use apache instead of server by default

2015-02-09 Thread Avraham Serour
you should try using nginx instead of apache, the configuration files are
much simpler to understand

On Mon, Feb 9, 2015 at 11:21 AM, Thomas Rega  wrote:

> Hi,
>
> You have to tell the apache where to find the wsgi file of your project.
>
> Here you can find informations about the configuration of
> apache/modwsgi:
> https://code.google.com/p/modwsgi/wiki/InstallationInstructions
>
> 2015-02-08 23:20 GMT+01:00 Thierry Granier :
> > Hello
> >
> > i have installed python3.4 and django1.7 on debian jessie.
> >
> > runserver works with mysql-connector and mysql databases.
> >
> > I'd like to use apache instead of this server.
> > So i have installed via sysaptic the module libapache2-mod-wsgi
> >
> > why can't i install my website root in the document/root of apache?
> > i don't understand the virtualhost and the directives associated.
> >
> > Thanks for your help
> >
> > T.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to django-users+unsubscr...@googlegroups.com.
> > To post to this group, send email to django-users@googlegroups.com.
> > Visit this group at http://groups.google.com/group/django-users.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/django-users/a38d1534-93e9-4870-be96-acff9a46b56f%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFgu0xhPWBGJ%2BKah9WhQwt2v4zQb9mapd%3DfrC85%3DykSkyP3rPw%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tKNL8MbHH0%3DxJtjw6Whh4wVJ7KS-iVxSvj0VfkJwRUMzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: CSRF token missing on file upload ajax request

2015-02-09 Thread Avraham Serour
try addind the csrf on the http header instead of form data

On Sun, Feb 8, 2015 at 10:40 PM, G Z  wrote:

> hello, I have an ajax request that sends a file to django, it is saying
> that the csrf token is missing but i copied my other ajax request that are
> working. I'm sure it has something to do with trying to pass a file to
> upload.
>
> I get a 403 and csrf missing return.
>
> base.html
>
> 
> 

Re: Tests and read-only database

2015-02-10 Thread Avraham Serour
you can tell django to use sqlite for tests, it will create an in memory
sqlite

if you need the data on the DB for the tests you can import when
initializing the tests, dump a part of the data and call it test data

On Tue, Feb 10, 2015 at 3:29 AM, Scot Hacker  wrote:

> My project access two databases, one of which is remote and read-only.
> When running tests, Django wants to create a test_ copy of that db on the
> remote host, but of course it lacks permission (I lack write access to the
> entire db host). So I'm blocked from running *any* tests, even ones that
> don't involve models for the remote data.
>
> I've come up with four possible solutions:
>
> 1) Tell Django's test runner to create the test version of that db
> locally, not on the remote host. However, the documentation
> 
> doesn't indicate a way to use the TEST: {} dictionary to specify an
> alternate host. This would be my preferred approach, but it doesn't seem
> possible.
>
> 2) Use this
> 
> module, which tells the test runner to treat the read-only db "as-is"
> rather than creating a copy of it. I don't like this because of the risk
> that the db might one day NOT be read-only (it's been discussed in our
> org). And  the module is 3 years old without updates.
>
> 3) Use this  technique, where
> the read-only db is pop()'d off the settings, making Django effectively
> forget it exists during testing (but then of course I can't test any code
> that involves those models). I'm currently doing this just to get tests
> back on the rails, but it's obviously very limiting.
>
> 4) Use this
> 
> technique, which alters the routers configuration during testing.
>
> Is there a preferred or recommended approach to this problem?
>
> Thanks.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2d599e4b-d208-472f-9a62-fc9c187da1d1%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tLbcpXps87WB9RsFyRmDLZf5F3eL-LwsHyni1duZxEnpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Registering a stand-alone test app

2015-02-10 Thread Avraham Serour
This could be an issue with your pythonpath , it looks like the ./app
folder is being added twice to the path, so the import complains it found a
module with this name in multiple locations
On Feb 11, 2015 8:07 AM, "Nicole Harris" 
wrote:

> Hi All,
>
> I have an app in my root folder named 'bdd'.  It contains an (empty)
> models.py as well as some files for running behave
>  tests.
> I have added this app to INSTALLED_APPS in my settings.py so that I can
> run the tests with the Django Behave
>  test runner.
>
> When I deploy my application to Heroku, I get the following error:
> *The app module  has multiple filesystem
> locations (['./bdd', './bdd', '/app/bdd']); you must configure this app
> with an AppConfig subclass with a 'path' class attribute.*
>
> Interestingly, this does not happen locally, or on my CI server.
>
> I am running 1.7, so my best guess is that this has something to do with
> https://docs.djangoproject.com/en/1.7/releases/1.7/#app-registry-consistency,
> but I'm having some trouble working out what the problem is.
>
> I do *not* have another app or folder called "app" so, I can't make any
> sense of the '/app/bdd' line in the error message.
>
> What's going on here?  Is it possible that my 'bdd' app is conflicting
> with another package?
>
> Thanks in advance :D
> Nicole
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6db47a08-fdb3-4f8b-87ee-de3a409fdee9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tJQduRYEiP81p3EJ27uAoPp0NOOzVDUBxpptF2f3sBODQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   5   >