Re: Django session question.

2013-12-24 Thread liuerfire Wang
Use the Django authentication
system,
then you can get current user with `request.user`



On Wed, Dec 25, 2013 at 6:30 AM, Chen Xu  wrote:

> I am working on a voting website, basically i want to be able to track the
> votes that come from the same person, or the same session, I am wondering
> does Django have some kinda built in session implementation that I can use
> to track people 's actions in the same session?
>
> Thanks in advance
>
> --
> ⚡ Chen Xu ⚡
>
> --
> 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/CACac-qZt74Of4pO9p2sn%2Bup%3DpTNpnSK3_kx3BWkEhL890XQz3A%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Best regards.
/**
google+: +liuerfire  twitter:
@liuerfire
蛋疼不蛋疼的都可以试着点一下~^_^~ 
***/

-- 
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/CAFysF%2BTY7e3PcLByaWwZu6KSbsseySQeb41hjQH0fsgGAOFUFw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Need Direction for Web App

2013-12-24 Thread zobcloud
I would like to create a web app / interface to manipulate and maintain my 
server's dhcpd.conf file. 
*Background in Short:*
I was asked a few years back to build a wifi network for approximately 500 
users with unlimited devices. With no money (barely any money). Done. 
The only requirement/restriction is we use MAC address filtering. So I have 
a server, serving dhcp leases. I have to manually input each MAC address 
with a hostname and group. This is a terrible pain. Especially for the 
amount of users I have with unlimited devices. Christmas time is horrible 
because they all come in wanting new devices registered. 
I do have, at least, a web form through google which updates an excel sheet 
in google docs, which I then access, copy the MAC address, then using my 
server gui, add the new MAC to the dhcpd.conf file and restart the server. 
*What I've done & What my hope is:*
I have started the Django tutorial. I have dabbled with python. I am an 
enthusiast in training. I have very little to no experience. I can learn. 
Fast. I am just running into branches of "things to learn" and it's 
starting to be a little overwhelming. 
I hope to do the lion's share of creating a web app that will do the 
following:

1. Register a user using sqlite3 database I have already created for all 
users. 
2. Authenticate a user
3. Provide a display of registered devices for user to either delete or not 
delete
4. Provide a form to register a new device(s)
5. submit request, append to dhcpd.conf & restart dhcp server 

There is minutia I am not including in this *cry for help*. 

This app would help me gain some distance from this monumental task. 

Am I in the right place? Is there some special soul out there who wants to 
help a fella out? 

Many thanks to all who have read this.

Mike Roberts

-- 
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/4888cb72-9733-446b-b8b6-7546c2bf8f1a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Django session question.

2013-12-24 Thread Chen Xu
I am working on a voting website, basically i want to be able to track the
votes that come from the same person, or the same session, I am wondering
does Django have some kinda built in session implementation that I can use
to track people 's actions in the same session?

Thanks in advance

-- 
⚡ Chen Xu ⚡

-- 
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/CACac-qZt74Of4pO9p2sn%2Bup%3DpTNpnSK3_kx3BWkEhL890XQz3A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to deploy a django project in the web?

2013-12-24 Thread Timothy W. Cook
Great!  Thanks.


On Tue, Dec 24, 2013 at 5:18 PM, Mark Moss  wrote:

> All these 3 DB engines are available: MySQL, PostgreSQL & SQLite. This
> have now been updated on this page --
> http://www.gigapros.com/portal/django-hosting
>
> All 3 Db engines run simultaneously and you may choose to selectively
> shutdown the ones that you don't need.
>
> - 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a34a177a-2f67-4afa-b5d3-47bd6a00de38%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
MLHIM VIP Signup: http://goo.gl/22B0U

Timothy Cook, MSc   +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

-- 
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/CA%2B%3DOU3WT4z4bdORL1G-kkQNu5PqoncPcVcBdYUb4TivxQUnP0w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django 1.6 + django-allauth facebook authentication error

2013-12-24 Thread Scot Hacker

On Monday, December 23, 2013 11:05:26 PM UTC-8, Nobin Mathew wrote:
>
> Hi,
>
> I am writing a django website using django-allauth for facebook 
> authentication.
>
> When I sign into facebook(after giving username and passwd) from my local 
> development server( 
> `<`http://127.0.0.1:8001/gallery/`>` 
> ) I get following error:
>

 When developing against Facebook, I find it easiest to create a localhost 
DNS entry emulating the domain registered in the FB app itself. So, if 
you're on Mac:

sudo vi /etc/hosts

and enter:

127.0.0.1  somedomain.com

And then:

./manage.py runserver somedomain.com:8080

Then just pull up somedomain.com:8080 in your browser and you'll be running 
a local dev site that FB sees as the production site, so your apps will 
work.

No such hassle with Twitter or Google.

./s


-- 
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/a83bd998-f2db-40ae-a088-9bcfc4e6c7a6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to deploy a django project in the web?

2013-12-24 Thread umair
I use nginx with gunicorn to run them.


On Saturday, December 21, 2013 10:36:58 AM UTC+5, Pablo Diaz wrote:
>
> I've finished my django project but I'm only running it locally. I want to 
> put it on a website
>

-- 
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/a90bb166-df81-4066-96ac-854ba9c93605%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to deploy a django project in the web?

2013-12-24 Thread Mark Moss
All these 3 DB engines are available: MySQL, PostgreSQL & SQLite. This have 
now been updated on this page -- 
http://www.gigapros.com/portal/django-hosting

All 3 Db engines run simultaneously and you may choose to selectively 
shutdown the ones that you don't need.

- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a34a177a-2f67-4afa-b5d3-47bd6a00de38%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to deploy a django project in the web?

2013-12-24 Thread Timothy W. Cook
On Tue, Dec 24, 2013 at 2:35 PM, Mark Moss  wrote:

> You may easily deploy your Django Apps on Gigapros. See --
> http://www.gigapros.com/portal/django-hosting
> You get full rot access to the server and there's no restrictions at all.
> :)
>
>
Hmmm, no PostgreSQL?





-- 
MLHIM VIP Signup: http://goo.gl/22B0U

Timothy Cook, MSc   +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

-- 
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/CA%2B%3DOU3XjsEqu3nA6bQ_Uo1uMgmaVFdCUa2wHYTKjVrrq_rnbng%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


RE: Can't Install on Windows 8.1

2013-12-24 Thread Semantic Law
Boy, the speedy responses on this thread are great! I can't wait to get home 
from work so I can put this advice into practice. And now you know what I want 
for Christmas 😄 - a working installation of django and python to play with. 

-Original Message-
From: "Tom Lockhart" 
Sent: ‎12/‎24/‎2013 9:15 AM
To: "django-users@googlegroups.com" 
Subject: Re: Can't Install on Windows 8.1



On 2013-12-24, at 6:56 AM, Malik Rumi  wrote:


Thank you. One more question before I dive in: I already have python installed. 
Are you suggesting I remove it and start over?



No. What you will find is that virtualenv will pick up whatever python it finds 
and package it in a new self-contained area. At that point you will have full 
control over what additional things get installed. But it needs a python 
installation somewhere else to get started.


If you have put a bunch of packages into your native python installation and 
are not sure what you have, you may want to re-install just to get a clean 
basic installation. But I haven't had to do that and would not bother unless 
you see other issues.


hth


- Tom



On Tuesday, December 24, 2013 8:04:08 AM UTC-6, Timothy W. Cook wrote:
Since it appears that you are not too familiar with Python, this may help:
http://www.youtube.com/watch?v=d_W02OwHa38


Using a virtual environment and pip will a long way to solving many of your 
issues.   It is considered best practice 'for a reason'. 

https://zignar.net/2012/06/17/install-python-on-windows/


Then, install django and other requirements inside your virtualenv.





HTH,

Tim







On Tue, Dec 24, 2013 at 11:35 AM, Malik Rumi  wrote:

Hello. This is my first post. The attached Word document tracks everything I 
have done this morning to get this to work. 


Your insights, guidance, and assistance is greatly appreciated. 


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dec70718-1de8-403d-9321-fbbfd760e88d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




-- 
MLHIM VIP Signup: http://goo.gl/22B0U

Timothy Cook, MSc   +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook



-- 
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/952e8e35-bb11-4c66-aca8-d25585606d76%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Tom Lockhart
tlockhart1...@gmail.com

 


-- 
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/BAW1U7oKdgM/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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/E65C7D3B-1493-44F5-AC2C-516E27912E60%40gmail.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/52b9c94a.ceb2320a.2a74.2f34%40mx.google.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django ORM & DB backend coupling

2013-12-24 Thread Marc Aymerich
On Tue, Dec 24, 2013 at 4:15 PM, Rakan Alhneiti
 wrote:
> Hello all,
>
> I was discussing the topic with a couple of my friends that Django's ORM is
> / is not tightly coupled with databases in general. My point of view was
> that django is not tightly coupled because you can write custom DB backends
> to deal with other sources of data such as a Restful API service while still
> taking advantage of the ORM.
> However, looking at the current architecture & implementation, i guess i can
> say that it is coupled because writing a custom backend would require you to
> write database-specific classes such as the DatabaseWrapper, Operations,
> Features .. etc.
>
> Is wiring Django's ORM with a Restful API service rather than MySQL or
> Postgresql a good idea? or the better one would be writing ORMs from scratch
> that are API-based rather than database-driven?
>
> Please share with me your thoughts on this topic.

You may want to take a look at a recent discussion at django-dev about
this subject

https://groups.google.com/forum/#!msg/django-developers/zlLCJ5HC3c8/7eFdmdUSDbsJ


-- 
Marc

-- 
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/CA%2BDCN_vDwyBGnMGjgmD5D8U5m_-xaxd1LtqWgurUUQ-Dfte8jA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Which Real Time Communications Protocol

2013-12-24 Thread Branko Majic
On Fri, 20 Dec 2013 08:58:39 -0800 (PST)
Mario Osorio  wrote:

> My app will have to communicate different customers (Linux devices, Windoze 
> devices, iOS devices and Android devices at least).
> 
> Overall, any of these customer devices will start one of many processes and 
> some of the other devices are required to respond by letting their users 
> know about the just initialized event. The original event might in turn 
> start related events with more or less the same behavior.
> 
> I will be using email and SMS as 'secondary weapons', but I need some sort 
> of real time communications protocol as primary so whatever devices that 
> are connected and need, will be notified immediately. (I'm not sure I'm 
> making much sense at this point)
> 
> What communications protocol can I use so that it:
> 
>- offers real time response
>- is as simple as possible
>- works in as many different customers as possible
> 
> Thanks a lot in advanced!
> 

A bit of a late suggestion, and I'm not sure if it will cover all of
your requirements above, but have you considered using XMPP? You could
even use it for "offline" delivery (i.e. the messages are stored on the
server until client connects).

When it comes down to its complexity, I'd say it's not really an option
if you don't have existing libraries for all the platforms you need,
though. Python has a couple of neat (client) implementations that are
easy to use, of course.

Best regards

-- 
Branko Majic
Jabber: bra...@majic.rs
Please use only Free formats when sending attachments to me.

Бранко Мајић
Џабер: bra...@majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.


signature.asc
Description: PGP signature


Re: Django ORM & DB backend coupling

2013-12-24 Thread Marc Aymerich
On Tue, Dec 24, 2013 at 4:15 PM, Rakan Alhneiti
 wrote:
> Hello all,
>
> I was discussing the topic with a couple of my friends that Django's ORM is
> / is not tightly coupled with databases in general. My point of view was
> that django is not tightly coupled because you can write custom DB backends
> to deal with other sources of data such as a Restful API service while still
> taking advantage of the ORM.
> However, looking at the current architecture & implementation, i guess i can
> say that it is coupled because writing a custom backend would require you to
> write database-specific classes such as the DatabaseWrapper, Operations,
> Features .. etc.
>
> Is wiring Django's ORM with a Restful API service rather than MySQL or
> Postgresql a good idea? or the better one would be writing ORMs from scratch
> that are API-based rather than database-driven?

I actually ended up implementing a "REST ORM" from scratch, but
heavily inspired by Django's ORM. I managed to spend a couple of weeks
on it, but now the project is dead. You may want to take a look at it
anyway:

http://confine-orm.readthedocs.org/
http://redmine.confine-project.eu/projects/confine-orm/repository

The main difference with Django is that resource schema is not
predefined, but discovered while browsing the API. Also the API for
what it was developed for did not support filtering, so it does
client-side filtering with heavy use of concurrency.

Don't really know how much you'll need to sacrifice in order to fit a
REST service within a Django ORM backend. It could be fun to do it,
but leveraging all its potential seems quite difficult at first look,
I would say it's not worth the trouble :)

-- 
Marc

-- 
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/CA%2BDCN_s3pb_%3D07vTb96qZANjBb30UZKnt7hB-fmhPuCD8PZxXg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder
Hi, Kirby 
I found something. Is it will work? 
MyModel.objects.filter(mobile_name='xyz').values(total)

Thanks for your support

-- 
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/e5c401a4-47df-49f4-bd55-76aef1cc7eef%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread C. Kirby
Ali,
As a general statement, the django ORM will return an entire instance of a 
model that you can then read values off of. To print  the "total" field for 
each instance of the model with name "xyz" you would do:

for mm in MyModel.objects.filter(mobile_name='xyz'):
print mm.total

While thinking about the underlying sql can be useful,it can cloud how 
django ends up representing the data as models.

On Tuesday, December 24, 2013 10:12:27 AM UTC-6, Ali Hayder wrote:
>
> Hi Russ Magee
>>
> Thanks for your answer. I am confused a little bit. 
> I think  "MyModel.objects.filter(mobile_name='xyz')" line of code is like 
> "SELECT * from table-xyz WHERE mobile_name=xyz"
> but I was looking for the alternative of "SELECT total FROM tablexyz 
> WHERE mobile_name=xyz"
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a0c4cdee-8032-423e-b098-2276872df29b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to deploy a django project in the web?

2013-12-24 Thread Mark Moss
You may easily deploy your Django Apps on Gigapros. See -- 
http://www.gigapros.com/portal/django-hosting
You get full rot access to the server and there's no restrictions at all. :)

- 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/665eda4a-3e53-4307-b692-4f7995dd264a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Question about django-boto and S3

2013-12-24 Thread Dig
Hi Xu,

There are 2 solutions in my opinion:
1. makes your key public, you can do it in S3 admin console or by a CLI/API,
2. use generate_url() method  on a boto.s3.key.Key object. please
refer to *http://boto.readthedocs.org/en/latest/ref/s3.html
 to get more detail.*

*Regards,*
*Dig*



Regards,
Dig Ge


On Tue, Dec 24, 2013 at 11:42 PM, Chen Xu  wrote:

> I have a private folder under a bucket, which stores all the images, and
> when I try to access to the image on the web for example:
>
> https://s3.amazonaws.com/bucket/folder/img.jpg";> it does not
> display, and gives my access denied error, I am wondering if there is a way
> using boto to generate a public accessible URL based on the private URL,
> and display it?
>
> Thanks in advance
>
> --
> ⚡ Chen Xu ⚡
>
> --
> 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/CACac-qZat%3DmA61Ci4W8yf3AsGF1Y84wVTBgGQ5x0Vx75CQXp7w%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/CAObE2pETLsAB38FTAMFd8vyQkEe6K73DHZceN89VAixjMd9HTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder

>
> Hi Russ Magee
>
Thanks for your answer. I am confused a little bit. 
I think  "MyModel.objects.filter(mobile_name='xyz')" line of code is like 
"SELECT * from table-xyz WHERE mobile_name=xyz"
but I was looking for the alternative of "SELECT total FROM tablexyz WHERE 
mobile_name=xyz"

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c6238374-3e56-4b28-b942-293abef7942e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: I can't figure out the django qeryset for retriving a value from a field by a condition

2013-12-24 Thread Ali Hayder

>
> Hi Russ Magee
>
Thanks for your answer, but I am confused sort of. I want the total value 
from the model.
"MyModel.objects.filter(mobile_name='xyz')" is this line of code can fetch 
me the value of total field?
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a8a5cd77-19d2-4b83-ac56-03d51c9cc3a8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to deploy a django project in the web?

2013-12-24 Thread Vibhu Rishi
Try Heroku https://devcenter.heroku.com/articles/getting-started-with-django

Caveat - just found it the hard way - heroku does not support user uploaded
files. So, if your project has that you will need to figure out where to
host the files. One suggestion given on the heroku site is AWS S3
https://devcenter.heroku.com/articles/s3

V.


On Mon, Dec 23, 2013 at 11:22 PM, C. Kirby  wrote:

> You can read up about deploying django in the deployment section of the
> docs:
>
> https://docs.djangoproject.com/en/1.6/howto/deployment/
>
>
> On Friday, December 20, 2013 11:36:58 PM UTC-6, Pablo Diaz wrote:
>>
>> I've finished my django project but I'm only running it locally. I want
>> to put it on a website
>>
>  --
> 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/68b82be9-d730-4480-a996-8a8d31c368b0%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Simplicity is the ultimate sophistication. - Leonardo da Vinci
Life is really simple, but we insist on making it complicated. - Confucius

-- 
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/CAPiONwn24xNg9hTQ6BeVBuWSa2XpjpC4-dVdEyFePsxem148%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django ORM & DB backend coupling

2013-12-24 Thread Rakan Alhneiti
Good points. The case at hand takes place when thinking about developing a 
django application on top of a service-oriented backend system that 
provides you with CRUD operations for data and abstracting the DB engine or 
storage mechanism that this backend is using. It does make sense to 
integrate this with the ORM to me but i find it quite strange that django 
is that coupled to mostly relational database engine reflected by it's 
architecture.

On Tuesday, December 24, 2013 5:30:10 PM UTC+2, Andrew Farrell wrote:
>
> This seems like it would be a reasonable idea if the API represented a 
> data model that was fundamentally relational in character. However, many 
> are not. An API should be designed such that it is the best way to interact 
> with its data model, so trying to shoehorn it into an ORM's API seems like 
> it would make it less usable.
>
> For what reasons would one want to use a REST API through the functions 
> exposed by the ORM and not through the python API itself?
>
>
> On Tue, Dec 24, 2013 at 10:15 AM, Rakan Alhneiti 
> 
> > wrote:
>
>> Hello all,
>>
>> I was discussing the topic with a couple of my friends that Django's ORM 
>> is / is not tightly coupled with databases in general. My point of view was 
>> that django is not tightly coupled because you can write custom DB backends 
>> to deal with other sources of data such as a Restful API service while 
>> still taking advantage of the ORM.
>> However, looking at the current architecture & implementation, i guess i 
>> can say that it is coupled because writing a custom backend would require 
>> you to write database-specific classes such as the DatabaseWrapper, 
>> Operations, Features .. etc.
>>
>> Is wiring Django's ORM with a Restful API service rather than MySQL or 
>> Postgresql a good idea? or the better one would be writing ORMs from 
>> scratch that are API-based rather than database-driven? 
>>
>> Please share with me your thoughts on this topic.
>>
>> Regards,
>> Rakan
>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/0f0d7924-3554-4052-bfb0-5c447282845f%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/c3561b4b-9a85-4f51-90e5-a58cc6736b44%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Question about django-boto and S3

2013-12-24 Thread Chen Xu
I have a private folder under a bucket, which stores all the images, and
when I try to access to the image on the web for example:

https://s3.amazonaws.com/bucket/folder/img.jpg";> it does not
display, and gives my access denied error, I am wondering if there is a way
using boto to generate a public accessible URL based on the private URL,
and display it?

Thanks in advance

-- 
⚡ Chen Xu ⚡

-- 
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/CACac-qZat%3DmA61Ci4W8yf3AsGF1Y84wVTBgGQ5x0Vx75CQXp7w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django ORM & DB backend coupling

2013-12-24 Thread Andrew Farrell
This seems like it would be a reasonable idea if the API represented a data
model that was fundamentally relational in character. However, many are
not. An API should be designed such that it is the best way to interact
with its data model, so trying to shoehorn it into an ORM's API seems like
it would make it less usable.

For what reasons would one want to use a REST API through the functions
exposed by the ORM and not through the python API itself?


On Tue, Dec 24, 2013 at 10:15 AM, Rakan Alhneiti
wrote:

> Hello all,
>
> I was discussing the topic with a couple of my friends that Django's ORM
> is / is not tightly coupled with databases in general. My point of view was
> that django is not tightly coupled because you can write custom DB backends
> to deal with other sources of data such as a Restful API service while
> still taking advantage of the ORM.
> However, looking at the current architecture & implementation, i guess i
> can say that it is coupled because writing a custom backend would require
> you to write database-specific classes such as the DatabaseWrapper,
> Operations, Features .. etc.
>
> Is wiring Django's ORM with a Restful API service rather than MySQL or
> Postgresql a good idea? or the better one would be writing ORMs from
> scratch that are API-based rather than database-driven?
>
> Please share with me your thoughts on this topic.
>
> Regards,
> Rakan
>
> --
> 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/0f0d7924-3554-4052-bfb0-5c447282845f%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/CA%2By5TLbn4wT3uRS%3D0QXVTz6OBQN%2BdN5bs-_wqK_zHVDt%2B5ZTFw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Django ORM & DB backend coupling

2013-12-24 Thread Rakan Alhneiti
Hello all,

I was discussing the topic with a couple of my friends that Django's ORM is 
/ is not tightly coupled with databases in general. My point of view was 
that django is not tightly coupled because you can write custom DB backends 
to deal with other sources of data such as a Restful API service while 
still taking advantage of the ORM.
However, looking at the current architecture & implementation, i guess i 
can say that it is coupled because writing a custom backend would require 
you to write database-specific classes such as the DatabaseWrapper, 
Operations, Features .. etc.

Is wiring Django's ORM with a Restful API service rather than MySQL or 
Postgresql a good idea? or the better one would be writing ORMs from 
scratch that are API-based rather than database-driven? 

Please share with me your thoughts on this topic.

Regards,
Rakan

-- 
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/0f0d7924-3554-4052-bfb0-5c447282845f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Can't Install on Windows 8.1

2013-12-24 Thread Tom Lockhart

On 2013-12-24, at 6:56 AM, Malik Rumi  wrote:

> Thank you. One more question before I dive in: I already have python 
> installed. Are you suggesting I remove it and start over?

No. What you will find is that virtualenv will pick up whatever python it finds 
and package it in a new self-contained area. At that point you will have full 
control over what additional things get installed. But it needs a python 
installation somewhere else to get started.

If you have put a bunch of packages into your native python installation and 
are not sure what you have, you may want to re-install just to get a clean 
basic installation. But I haven't had to do that and would not bother unless 
you see other issues.

hth

- Tom

> 
> On Tuesday, December 24, 2013 8:04:08 AM UTC-6, Timothy W. Cook wrote:
> Since it appears that you are not too familiar with Python, this may help:
> http://www.youtube.com/watch?v=d_W02OwHa38
> 
> Using a virtual environment and pip will a long way to solving many of your 
> issues.   It is considered best practice 'for a reason'. 
> 
> https://zignar.net/2012/06/17/install-python-on-windows/
> 
> Then, install django and other requirements inside your virtualenv.
> 
> 
> 
> HTH,
> Tim
> 
> 
> 
> 
> On Tue, Dec 24, 2013 at 11:35 AM, Malik Rumi  wrote:
> Hello. This is my first post. The attached Word document tracks everything I 
> have done this morning to get this to work. 
> 
> Your insights, guidance, and assistance is greatly appreciated. 
> 
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/dec70718-1de8-403d-9321-fbbfd760e88d%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> 
> -- 
> MLHIM VIP Signup: http://goo.gl/22B0U
> 
> Timothy Cook, MSc   +55 21 94711995
> MLHIM http://www.mlhim.org
> Like Us on FB: https://www.facebook.com/mlhim2
> Circle us on G+: http://goo.gl/44EV5
> Google Scholar: http://goo.gl/MMZ1o
> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
> 
> -- 
> 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/952e8e35-bb11-4c66-aca8-d25585606d76%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Tom Lockhart
tlockhart1...@gmail.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/E65C7D3B-1493-44F5-AC2C-516E27912E60%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
<>

Re: Can't Install on Windows 8.1

2013-12-24 Thread Malik Rumi
Thank you. One more question before I dive in: I already have python 
installed. Are you suggesting I remove it and start over?

On Tuesday, December 24, 2013 8:04:08 AM UTC-6, Timothy W. Cook wrote:
>
> Since it appears that you are not too familiar with Python, this may help:
> http://www.youtube.com/watch?v=d_W02OwHa38
>
> Using a virtual environment and pip will a long way to solving many of 
> your issues.   It is considered best practice 'for a reason'. 
>
> https://zignar.net/2012/06/17/install-python-on-windows/
>
> Then, install django and other requirements inside your virtualenv.
>
>
>
> HTH,
> Tim
>
>
>
>
> On Tue, Dec 24, 2013 at 11:35 AM, Malik Rumi 
> > wrote:
>
>> Hello. This is my first post. The attached Word document tracks 
>> everything I have done this morning to get this to work. 
>>
>> Your insights, guidance, and assistance is greatly appreciated. 
>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/dec70718-1de8-403d-9321-fbbfd760e88d%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> MLHIM VIP Signup: http://goo.gl/22B0U
> 
> Timothy Cook, MSc   +55 21 94711995
> MLHIM http://www.mlhim.org
> Like Us on FB: https://www.facebook.com/mlhim2
> Circle us on G+: http://goo.gl/44EV5
> Google Scholar: http://goo.gl/MMZ1o
> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
>  

-- 
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/952e8e35-bb11-4c66-aca8-d25585606d76%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Can't Install on Windows 8.1

2013-12-24 Thread Timothy W. Cook
Since it appears that you are not too familiar with Python, this may help:
http://www.youtube.com/watch?v=d_W02OwHa38

Using a virtual environment and pip will a long way to solving many of your
issues.   It is considered best practice 'for a reason'.

https://zignar.net/2012/06/17/install-python-on-windows/

Then, install django and other requirements inside your virtualenv.



HTH,
Tim




On Tue, Dec 24, 2013 at 11:35 AM, Malik Rumi  wrote:

> Hello. This is my first post. The attached Word document tracks everything
> I have done this morning to get this to work.
>
> Your insights, guidance, and assistance is greatly appreciated.
>
> --
> 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/dec70718-1de8-403d-9321-fbbfd760e88d%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
MLHIM VIP Signup: http://goo.gl/22B0U

Timothy Cook, MSc   +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

-- 
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/CA%2B%3DOU3WGaLMnxx%2BEHgYHZk8Z80cruktTKpiNhNX5bRJhEEHO8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: ViewDoesNotExist at /admin/

2013-12-24 Thread Tom Lockhart

On 2013-12-23, at 9:42 PM, Gabriele Stoia  wrote:

> I think I found the problem...maybe...
> 
> I running my app in the same hosting of another app ... (sorry for my 
> english..is not my first language... I'm italian…)

If you are not using virtualenv and pip to manage each of these installations 
you will likely find it useful to do so. It should eliminate worries about 
conflicts between version sets.

hth

  - Tom

> 

> I have
> 
> -- first app
> -- feincms
> -- other module
> -- ...
> --second app
> -- -- feincms
> -- -- other module
> 
> Maybe my second-app is using feincms of the first app which is different 
> version.
> I think this because I got this error :
> 
> No module named filterspecs
> /home/alessandrocambogia/feincms/admin/filterspecs.py in , line 7
> 
> where alessandrocambogia is the first-app.
> 
> I need to have 
> /home/alessandrocambogia/gabryandjenny/feincms
> 
> where gabryandjenny  is the second-app
> 
> but actually I don't know how to change the path... Is my first experience in 
> Django.
> Can you help in this  Please ??? 
> Thank you in advance.
> 
> Gabri
> 
> 
> 
> Il giorno martedì 24 dicembre 2013 07:45:02 UTC+7, Russell Keith-Magee ha 
> scritto:
> 
> On Mon, Dec 23, 2013 at 10:53 AM, Gabriele Stoia  wrote:
> Hi Russel,
> 
> thank you for your e-mail !!!
> I thought that something was connected with MPTT or FeinCMS... I'll try to 
> work out !
> What I really don't understand why so many problem when you in deployment ??? 
> In local everything was super fine !!!
> 
> If you're having "deployment only" problems, this points to a problem with 
> the way your development process is organised. These sorts of problems only 
> emerge because your development environment is fundamentally different to 
> your production environment -- for example, different versions of software, 
> different paths. If you make good use of virtualenv to isolate your project, 
> and use requirements files to ensure version compatibility, you should be 
> able to minimise this sort of problem.
> 
> Yours,
> Russ Magee %-)
> 
> -- 
> 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/e66a8967-5e82-43b2-9ba8-8736cb192025%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Tom Lockhart
tlockhart1...@gmail.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/C827910A-B624-4454-B6F9-4F6BC5F55137%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
<>

Re: Mezzanine 3.0 and Cartridge 0.9 released

2013-12-24 Thread Stephen McDonald
Also links to the GitHub repos if you're interested:

https://github.com/stephenmcd/mezzanine
https://github.com/stephenmcd/cartridge


On Tuesday, 24 December 2013 22:48:38 UTC+11, Stephen McDonald wrote:
>
> Hi all,
>
> I've just released Mezzanine 3.0 and Cartridge 0.9 to PyPi.
>
> For those unfamiliar with it, Mezzanine (http://mezzanine.jupo.org) is a 
> BSD licensed CMS project built on Django. It resembles tools such as 
> Wordpress that provide an interface for managing hierarchical pages, blog 
> posts, user-built forms, galleries, and more - it's currently the most 
> downloaded CMS project for Django. Cartridge (http://cartridge.jupo.org) 
> is a Django app that provides e-commerce capabilities for Mezzanine. 
> Mezzanine and Cartridge have been under development since 2009, and now 
> power hundreds of rich sites: http://mezzanine.jupo.org/sites
>
> This release represents a major round of housekeeping in the software 
> environment Mezzanine works with. Specifically Mezzanine and Cartridge now 
> support:
>
> - Python 3.3 (as well as 2.6 and 2.7)
> - Django 1.6 (as well as 1.4 and 1.5)
> - Bootstrap 3
>
> You can read the full announcement on the mezzanine-users mailing list: 
> https://groups.google.com/forum/#!topic/mezzanine-users/3HkoJklKktc
>
> Cheers,
> Steve
>
> -- 
> Stephen McDonald
> http://jupo.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eb180d3f-7365-4d4b-8e20-8673a9df24a2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Mezzanine 3.0 and Cartridge 0.9 released

2013-12-24 Thread Stephen McDonald
Hi all,

I've just released Mezzanine 3.0 and Cartridge 0.9 to PyPi.

For those unfamiliar with it, Mezzanine (http://mezzanine.jupo.org) is a
BSD licensed CMS project built on Django. It resembles tools such as
Wordpress that provide an interface for managing hierarchical pages, blog
posts, user-built forms, galleries, and more - it's currently the most
downloaded CMS project for Django. Cartridge (http://cartridge.jupo.org) is
a Django app that provides e-commerce capabilities for Mezzanine. Mezzanine
and Cartridge have been under development since 2009, and now power
hundreds of rich sites: http://mezzanine.jupo.org/sites

This release represents a major round of housekeeping in the software
environment Mezzanine works with. Specifically Mezzanine and Cartridge now
support:

- Python 3.3 (as well as 2.6 and 2.7)
- Django 1.6 (as well as 1.4 and 1.5)
- Bootstrap 3

You can read the full announcement on the mezzanine-users mailing list:
https://groups.google.com/forum/#!topic/mezzanine-users/3HkoJklKktc

Cheers,
Steve

-- 
Stephen McDonald
http://jupo.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFDn9NZrf6ChQH4N8ZiTjTsrPE1Vmb3HqC1TxOzwEQyGRe1O6A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django 1.6 + django-allauth facebook authentication error

2013-12-24 Thread Avraham Serour
facebook can indeed redirect to localhost, I've done it before, the problem
is:
1 - you need to use localhost, 12.7.0.0.1 won't work
2 - you need a separate app id for that, just create a general one for
localhost development


On Tue, Dec 24, 2013 at 11:58 AM, Timothy W. Cook  wrote:

> My guess is because FB can't redirect to a localhost URL. You could
> probably use something like no-ip.org and setup a reachable URL.
>
> HTH,
> Tim
>
>
>
> On Tue, Dec 24, 2013 at 5:05 AM, Nobin Mathew wrote:
>
>> Hi,
>>
>> I am writing a django website using django-allauth for facebook
>> authentication.
>>
>> When I sign into facebook(after giving username and passwd) from my local
>> development server( 
>> `<`http://127.0.0.1:8001/gallery/`>`
>> ) I get following error:
>>
>> ***
>> Social Network Login Failure
>>
>> An error occurred while attempting to login via your social network
>> account.
>> ***
>>
>> and url in browser while on this error is
>> http://localhost:8001/gallery/accounts/facebook/login/callback/.
>>
>>
>> Settings:
>>
>> Facebook.com app setting:
>> AppId =XXX(not shown)
>> APP secret =xxx(not shown)
>>
>> Wbsite:Site URL =
>> http://localhost:8001/gallery/accounts/facebook/login/callback/
>>
>> Django setting(local):
>>
>> LOGIN_REDIRECT_URL = '
>> http://localhost:8001/gallery/accounts/facebook/login/callback/'
>>
>> SOCIALACCOUNT_PROVIDERS = {
>>  'facebook': {
>> 'SCOPE': ['email', 'publish_stream'],
>> 'AUTH_PARAMS': { 'auth_type': 'reauthenticate' },
>> 'METHOD': 'oauth2'  # instead of 'oauth2'
>>  }
>> }
>>
>> ACCOUNT_LOGOUT_REDIRECT_URL = '/gallery'
>> SOCIALACCOUNT_QUERY_EMAIL = True
>> SOCIALACCOUNT_AUTO_SIGNUP = True
>> ACCOUNT_EMAIL_VERIFICATION = False
>>
>>
>>
>> and my base.html template is (not full):
>>   
>>  {% load url from future %}
>>  {% load socialaccount %}
>>  {% if request.user.is_authenticated %}
>>  Logout
>>  {% else %}
>>  Sign Up
>>  Log in
>>  
>>  Sign Up/Login with Facebook
>>  {% endif %}
>>   
>>
>>
>>
>>
>> When I am error page
>> http://localhost:8001/gallery/accounts/facebook/login/callback/ it says
>> I am logged in (i.e. displays Logout and user is authenticated).
>>
>> Any Idea why this happens? Any help will be appreciated.
>>
>>
>>
>>
>>
>>
>>  --
>> 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/aba71009-2066-48aa-8502-0e90699295e3%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> MLHIM VIP Signup: http://goo.gl/22B0U
> 
> Timothy Cook, MSc   +55 21 94711995
> MLHIM http://www.mlhim.org
> Like Us on FB: https://www.facebook.com/mlhim2
> Circle us on G+: http://goo.gl/44EV5
> Google Scholar: http://goo.gl/MMZ1o
> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
>
> --
> 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/CA%2B%3DOU3V9n23Wep17u%2B6V3Fe-sKii-Nf1juu-30jU4yAM_eXo6A%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/CAFWa6tJAJZFVhLa%2BXx%2B2zCtKjFhnCY2eh%2BSGBrFLUE6GBp4NEw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django 1.6 + django-allauth facebook authentication error

2013-12-24 Thread Timothy W. Cook
My guess is because FB can't redirect to a localhost URL. You could
probably use something like no-ip.org and setup a reachable URL.

HTH,
Tim



On Tue, Dec 24, 2013 at 5:05 AM, Nobin Mathew wrote:

> Hi,
>
> I am writing a django website using django-allauth for facebook
> authentication.
>
> When I sign into facebook(after giving username and passwd) from my local
> development server( 
> `<`http://127.0.0.1:8001/gallery/`>`
> ) I get following error:
>
> ***
> Social Network Login Failure
>
> An error occurred while attempting to login via your social network
> account.
> ***
>
> and url in browser while on this error is
> http://localhost:8001/gallery/accounts/facebook/login/callback/.
>
>
> Settings:
>
> Facebook.com app setting:
> AppId =XXX(not shown)
> APP secret =xxx(not shown)
>
> Wbsite:Site URL =
> http://localhost:8001/gallery/accounts/facebook/login/callback/
>
> Django setting(local):
>
> LOGIN_REDIRECT_URL = '
> http://localhost:8001/gallery/accounts/facebook/login/callback/'
>
> SOCIALACCOUNT_PROVIDERS = {
>  'facebook': {
> 'SCOPE': ['email', 'publish_stream'],
> 'AUTH_PARAMS': { 'auth_type': 'reauthenticate' },
> 'METHOD': 'oauth2'  # instead of 'oauth2'
>  }
> }
>
> ACCOUNT_LOGOUT_REDIRECT_URL = '/gallery'
> SOCIALACCOUNT_QUERY_EMAIL = True
> SOCIALACCOUNT_AUTO_SIGNUP = True
> ACCOUNT_EMAIL_VERIFICATION = False
>
>
>
> and my base.html template is (not full):
>   
>  {% load url from future %}
>  {% load socialaccount %}
>  {% if request.user.is_authenticated %}
>  Logout
>  {% else %}
>  Sign Up
>  Log in
>  
>  Sign Up/Login with Facebook
>  {% endif %}
>   
>
>
>
>
> When I am error page
> http://localhost:8001/gallery/accounts/facebook/login/callback/ it says I
> am logged in (i.e. displays Logout and user is authenticated).
>
> Any Idea why this happens? Any help will be appreciated.
>
>
>
>
>
>
>  --
> 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/aba71009-2066-48aa-8502-0e90699295e3%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
MLHIM VIP Signup: http://goo.gl/22B0U

Timothy Cook, MSc   +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

-- 
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/CA%2B%3DOU3V9n23Wep17u%2B6V3Fe-sKii-Nf1juu-30jU4yAM_eXo6A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


django 1.6 + django-allauth facebook authentication error

2013-12-24 Thread Nobin Mathew
Hi,

I am writing a django website using django-allauth for facebook 
authentication.

When I sign into facebook(after giving username and passwd) from my local 
development server( `<`http://127.0.0.1:8001/gallery/`>` ) I get following 
error:

***
Social Network Login Failure

An error occurred while attempting to login via your social network account.
***

and url in browser while on this error is 
http://localhost:8001/gallery/accounts/facebook/login/callback/.


Settings:

Facebook.com app setting:
AppId =XXX(not shown)
APP secret =xxx(not shown)

Wbsite:Site URL = 
http://localhost:8001/gallery/accounts/facebook/login/callback/

Django setting(local):

LOGIN_REDIRECT_URL = 
'http://localhost:8001/gallery/accounts/facebook/login/callback/'

SOCIALACCOUNT_PROVIDERS = {
 'facebook': {
'SCOPE': ['email', 'publish_stream'],
'AUTH_PARAMS': { 'auth_type': 'reauthenticate' },
'METHOD': 'oauth2'  # instead of 'oauth2'
 }
}

ACCOUNT_LOGOUT_REDIRECT_URL = '/gallery'
SOCIALACCOUNT_QUERY_EMAIL = True
SOCIALACCOUNT_AUTO_SIGNUP = True
ACCOUNT_EMAIL_VERIFICATION = False



and my base.html template is (not full):
  
 {% load url from future %}
 {% load socialaccount %}
 {% if request.user.is_authenticated %}
 Logout
 {% else %}
 Sign Up
 Log in
 
 Sign Up/Login with Facebook
 {% endif %}
  
   
 
   

When I am error page  
http://localhost:8001/gallery/accounts/facebook/login/callback/ it says I 
am logged in (i.e. displays Logout and user is authenticated).

Any Idea why this happens? Any help will be appreciated.






-- 
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/aba71009-2066-48aa-8502-0e90699295e3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.