Re: django-popup-forms

2013-08-14 Thread Timothy Makobu
Reading this https://github.com/joinourtalents/django-popup-forms It does
show how to set it up. Where are you getting stuck?


On Thu, Aug 15, 2013 at 2:41 AM, Brian Millham  wrote:

> I've been trying to use django-popup-forms, but with no success. Has
> anyone used this?
>
> I suspect that I didn't install it correctly. I just ran sudo python
> setup.py install, but it doesn't seem available under django.
>
> It looks like a nice package, and will do exactly what I'm looking for.
> It's a shame that the documentation with it doesn't show how to properly
> install it, and has no working examples with it.
>
> Brian
>
> --
> 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: Model verbose name appears to split up on capitalisation (e.g. "iOS") - any way to suppress this?

2013-08-14 Thread Mike Dewhirst

On 15/08/2013 2:06pm, Victor Hooi wrote:

For example, verbose_name-Plural on the main admin page (/admin) still
seems to insist on capitalising the first "i" - as in, it appears as
"IOS clients", rather than "iOS clients", as it's set in class Meta:



Try verbose_name = " iOS Clients" with a leading space

--
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: Model verbose name appears to split up on capitalisation (e.g. "iOS") - any way to suppress this?

2013-08-14 Thread Victor Hooi
Hi,

Aha, that's embarrassing...yes, it was the lowercase M.

The extra spacing appears to be fixed now.

However, capitalisation still seems a bit funny.

For example, verbose_name-Plural on the main admin page (/admin) still 
seems to insist on capitalising the first "i" - as in, it appears as "IOS 
clients", rather than "iOS clients", as it's set in class Meta:


However, strangely enough the verbose_name is capitalised correctly:


Is there any way to fix that issue?

And DRF is just being completely random, but I guess I'll ned to look into 
that to see where it's getting it's verbose form from:



Cheers,
Victor

On Thursday, 15 August 2013 12:50:40 UTC+10, Ramiro Morales wrote:
>
> On Wed, Aug 14, 2013 at 11:46 PM, Victor Hooi 
>  
> wrote: 
> > Hi, 
> > 
> > I have a Django model: 
> > 
> >> class iOSClient(models.Model): 
> >> ... 
> >> class meta: 
> >> ... 
> >> verbose_name = 'iOS client' 
> >> verbose_name_plural = 'iOS clients' 
> > 
> > 
> > However, when this model appears in the Django Admin, or in say, Django 
> Rest 
> > Framework, the human-readable name seems to given as "I os client" or "i 
> os 
> > client". 
> > 
> > Is there any way to easily suppress this behaviour? 
>
> These textual representations should be obeying what you specified with 
> the verbose_name* options. 
>
> Are you actually using "meta"? It should be Meta with a capital M. 
>
> Can you try that and tell us if that solves things for you? 
>
> -- 
> Ramiro Morales 
> @ramiromorales 
>

-- 
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: Model verbose name appears to split up on capitalisation (e.g. "iOS") - any way to suppress this?

2013-08-14 Thread Ramiro Morales
On Wed, Aug 14, 2013 at 11:46 PM, Victor Hooi  wrote:
> Hi,
>
> I have a Django model:
>
>> class iOSClient(models.Model):
>> ...
>> class meta:
>> ...
>> verbose_name = 'iOS client'
>> verbose_name_plural = 'iOS clients'
>
>
> However, when this model appears in the Django Admin, or in say, Django Rest
> Framework, the human-readable name seems to given as "I os client" or "i os
> client".
>
> Is there any way to easily suppress this behaviour?

These textual representations should be obeying what you specified with
the verbose_name* options.

Are you actually using "meta"? It should be Meta with a capital M.

Can you try that and tell us if that solves things for you?

-- 
Ramiro Morales
@ramiromorales

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


Model verbose name appears to split up on capitalisation (e.g. "iOS") - any way to suppress this?

2013-08-14 Thread Victor Hooi
Hi,

I have a Django model:

class iOSClient(models.Model):
> ...
> class meta:
> ...
> verbose_name = 'iOS client'
> verbose_name_plural = 'iOS clients'


However, when this model appears in the Django Admin, or in say, Django 
Rest Framework, the human-readable name seems to given as "I os client" or "i 
os client".

Is there any way to easily suppress this behaviour?

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.
For more options, visit https://groups.google.com/groups/opt_out.


django-popup-forms

2013-08-14 Thread Brian Millham
I've been trying to use django-popup-forms, but with no success. Has anyone 
used this? 

I suspect that I didn't install it correctly. I just ran sudo python 
setup.py install, but it doesn't seem available under django.

It looks like a nice package, and will do exactly what I'm looking for. 
It's a shame that the documentation with it doesn't show how to properly 
install it, and has no working examples with it.

Brian

-- 
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: South doesn't recognize modification in ManytoMany fields

2013-08-14 Thread Arnold Krille
Hi,

On Thu, 15 Aug 2013 03:31:08 +0530 Pradeep Kumar 
wrote:
> I have made a model change from
> standard = models.ManyToManyField(Standard)
> to
> standard = models.ManyToManyField(Standard, blank = True, null = True)
> South schemamigration for this app doesn't recognize the change ?

I don't see a difference between these two? Both say that you want to
have zero or more connections from each item in your model to the items
of Standard. And zero or more connections from each Standard-item to
items in your model.

M2M are done with an intermediate table. But why do you want to add
lines in that table that have an entry to your model but no entry for
'Standard'? Its the same as if no entry in the intermediate.

I think what django (and south) do is just ignore blank- and
null-parameters.

Have fun,

Arnold


signature.asc
Description: PGP signature


Re: South doesn't recognize modification in ManytoMany fields

2013-08-14 Thread Mike Dewhirst

On 15/08/2013 8:01am, Pradeep Kumar wrote:

I have made a model change from

standard = models.ManyToManyField(Standard)

to

standard = models.ManyToManyField(Standard, blank = True, null =
True)

South schemamigration for this app doesn't recognize the change ?


I think it is probably not necessary to migrate that change because the 
ORM probably controls Null. Blank is definitely an ORM thing. It depends 
I suppose on the defaults used with your database.


I would guess you would see an error if the ORM contradicted the 
database settings for that column.


If the column in question is already set for Not null = False, what is 
there for South to do?


Mike



http://stackoverflow.com/questions/18243039/south-migrating-foriegn-key-many-to-many-field-to-null-true-blank-true-doesnt



Similar to the question link below, it's unanswered !

South migrations and changes to many-to-may fields


 any idea? Please help !

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


South doesn't recognize modification in ManytoMany fields

2013-08-14 Thread Pradeep Kumar
I have made a model change from

standard = models.ManyToManyField(Standard)

to

standard = models.ManyToManyField(Standard, blank = True, null = True)

South schemamigration for this app doesn't recognize the change ?

http://stackoverflow.com/questions/18243039/south-migrating-foriegn-key-many-to-many-field-to-null-true-blank-true-doesnt


Similar to the question link below, it's unanswered !

South migrations and changes to many-to-may
fields

any idea? Please help !

-- 
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: Class Based Views

2013-08-14 Thread Drew Ferguson
Phew!

Thanks for clearing that up

On Wed, 14 Aug 2013 17:29:59 -0400
Bill Freeman  wrote:

> I believe that GENERIC views that ARE NOT CBVs are deprecated (or maybe
> even gone in the latest).
> 
> 
> On Wed, Aug 14, 2013 at 5:23 PM, Drew Ferguson
> wrote:
> 
> > Hi
> >
> > Did someone here recently say CBVs are now or will be deprecated?
> > Or did I imagine that because I was on holiday?
> >
> > --
> > Drew Ferguson
> >
> > --
> > 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.
> >
> 



-- 
Drew Ferguson

-- 
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: Class Based Views

2013-08-14 Thread Bill Freeman
I believe that GENERIC views that ARE NOT CBVs are deprecated (or maybe
even gone in the latest).


On Wed, Aug 14, 2013 at 5:23 PM, Drew Ferguson wrote:

> Hi
>
> Did someone here recently say CBVs are now or will be deprecated?
> Or did I imagine that because I was on holiday?
>
> --
> Drew Ferguson
>
> --
> 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.


Class Based Views

2013-08-14 Thread Drew Ferguson
Hi

Did someone here recently say CBVs are now or will be deprecated?
Or did I imagine that because I was on holiday?

-- 
Drew Ferguson

-- 
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: Do we need to setup Database Settings before Using Admin feature in Django?

2013-08-14 Thread Christophe Pettus

On Aug 14, 2013, at 11:31 AM, Harmeet Singh wrote:

> Can we use the built in ADMIN feature in Django by just configuring 
> 'django.contrib.admin' under INSTALLED_APPS in settings.py file without 
> configuring DATABASES settings ?

No.  In fact, it's not clear what good the Django admin would be without a 
database to use.  The admin works on your Model classes, so it needs a 
database, and the database tables that correspond to the Model objects, already 
created.

--
-- Christophe Pettus
   x...@thebuild.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.
For more options, visit https://groups.google.com/groups/opt_out.


Do we need to setup Database Settings before Using Admin feature in Django?

2013-08-14 Thread Harmeet Singh
Hello,

Can we use the built in ADMIN feature in Django by just configuring *
'django.contrib.admin'* under INSTALLED_APPS in settings.py file without 
configuring DATABASES settings ?

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3'
}

or Is it required to configure DATABASES settings along with the admin 
settings in order to use the ADMIN feature of Django?


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.


Re: Does Model.save() write back all the field values?

2013-08-14 Thread Tomas Ehrlich
Hi,
I apologize for possible off-topic, but since Jacob already answered
your question, please allow me to add another hint:

Book.objects.filter(published=False).update(published=True)

would do the same in single query, updating "published" field only (even in 
<1.5).


Cheers,
  Tom


Dne Wed, 14 Aug 2013 10:17:04 -0500
Jacob Kaplan-Moss  napsal(a):

> It's not a bug; that is by design.
> 
> However, it's not perfect, so in 1.5 we added update_fields:
> https://docs.djangoproject.com/en/1.5/ref/models/instances/#specifying-which-fields-to-save
> 
> Jacob
> 
> 
> On Wed, Aug 14, 2013 at 7:01 AM, Dong Wang  wrote:
> 
> > Hi all,
> >
> > I'm using Django 1.4.2. Please let me start my question by an example:
> >
> > books = Book.objects.filter(published=False)
> > for book in books:
> >  book.published=True
> > book.save()
> >
> > I would think this small snippet of code will only update the "published"
> > field, but actually it write all the cached field values back to the
> > database.
> >
> > Is it a bug or designed to be this way?
> >
> > Thanks
> > --
> > Dong Wang
> >
> >  --
> > 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.
> >
> 


signature.asc
Description: PGP signature


Re: Does Model.save() write back all the field values?

2013-08-14 Thread Jacob Kaplan-Moss
It's not a bug; that is by design.

However, it's not perfect, so in 1.5 we added update_fields:
https://docs.djangoproject.com/en/1.5/ref/models/instances/#specifying-which-fields-to-save

Jacob


On Wed, Aug 14, 2013 at 7:01 AM, Dong Wang  wrote:

> Hi all,
>
> I'm using Django 1.4.2. Please let me start my question by an example:
>
> books = Book.objects.filter(published=False)
> for book in books:
>  book.published=True
> book.save()
>
> I would think this small snippet of code will only update the "published"
> field, but actually it write all the cached field values back to the
> database.
>
> Is it a bug or designed to be this way?
>
> Thanks
> --
> Dong Wang
>
>  --
> 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.


MySQL Workbench Module to export Django model.py

2013-08-14 Thread Daniel Lichtblau
Hi,

i've written a MySQL Workbench Module to export a Django model.py from the 
EER Diagram and i want to share it with the community.

https://sourceforge.net/projects/mysqlworkbenchdjangomodule/

Any feedback is 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How do I create a script to fill in django admin login form and submit?

2013-08-14 Thread Elena Williams
Have you explored the packages "selenium" or "sikuli" these are both great
fun for front-end testing.

You could intercept the RFID tag using python and feed it through one of
the above tools, or something like this perhaps (if I've understood what
you're trying to do correctly).

Elena :)


On 14 August 2013 13:23, <7equivale...@gmail.com> wrote:

> Here is what I'm doing. I have written a script the runs and monitors a
> serial connection for incoming data. The data comes from an RFID tag
> reader. I have that working. What I'd like to do is use this rfid tag
> number to fill in the password feild and  submit the django Admin login form.
> I'm still a novice and Any advise is appreciated... 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.


Does Model.save() write back all the field values?

2013-08-14 Thread Dong Wang
Hi all,

I'm using Django 1.4.2. Please let me start my question by an example:

books = Book.objects.filter(published=False)
for book in books:
book.published=True
book.save() 

I would think this small snippet of code will only update the "published" 
field, but actually it write all the cached field values back to the database. 

Is it a bug or designed to be this way?

Thanks
-- 
Dong Wang

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


Subtitle upload images

2013-08-14 Thread Hélio Miranda
Hi
I have a problem, that I am not able to solve it is:
I'm uploading pictures, and wanted to introduce their legends too, so did 
the following, which was a preview of the images to the user before 
uploading. My html code is this:

http://plnkr.co/edit/fm0hAZFkVUE7zA3BnZLw?p=preview

And this preview is that there is.

Now in my view, I have this code:

http://plnkr.co/edit/u8ZSrFJCCKFO1PjhO8Tw?p=preview

The problem that happens is that it does well upload the photos without 
problem but the subtitles he inserts in every picture the caption that is 
only in the last.

I made myself clear?
Someone can help me?

thank you
Helio Miranda

-- 
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 script to fill in django admin login form and submit?

2013-08-14 Thread Kelvin Wong
https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.login

K


On Tuesday, August 13, 2013 10:23:48 PM UTC-7, 7equiv...@gmail.com wrote:
>
> Here is what I'm doing. I have written a script the runs and monitors a 
> serial connection for incoming data. The data comes from an RFID tag 
> reader. I have that working. What I'd like to do is use this rfid tag 
> number to fill in the password feild and  submit the django Admin login form. 
> I'm still a novice and Any advise is appreciated... 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.




Re: Django Gunicorn with Two Django App

2013-08-14 Thread Timothy Makobu
Aaron's answer is spot on. Just adding that with Nginx, you don't need
Apache.


On Wed, Aug 14, 2013 at 11:10 AM, Kelvin Wong  wrote:

> The error "Could not reliably determine the server's fully qualified
> domain name" is harmless, but the fix is easy. See...
>
> https://help.ubuntu.com/community/ApacheMySQLPHP#Troubleshooting_Apache
>
> If you are running Django under Nginx and Gunicorn, why are you restarting
> Apache anyway?
>
> Your gateway issue is very common with Nginx and can be fixed by proper
> configuration of your reverse proxy and ensuring that your Gunicorns are
> actually running and handling traffic. I've used Supervisor to manage the
> Gunicorns and it works well for that purpose.
>
> http://wiki.nginx.org/HttpProxyModule
>
> http://docs.gunicorn.org/en/latest/deploy.html
>
> If you find the reverse proxy set-up too confusing, I'd recommend
> mod_wsgi. I find it easier to set-up and manage than other methods.
>
> K
>
> On Tuesday, August 13, 2013 1:11:28 PM UTC-7, Muhammed TÜFEKYAPAN wrote:
>>
>> I edit my port, sites enabled files etc.
>>
>> Now two sites run different port but i got an error: 502 Bad Gateway
>>
>> Also when i type "service apache2 restart" there is error "Could not
>> reliably determine the server's fully qualified domain name, using
>> 127.0.0.1 for ServerName" error.
>>
>> I think real problem this.
>>
>>
>> On Tuesday, August 13, 2013 5:31:07 PM UTC+3, Muhammed TÜFEKYAPAN wrote:
>>>
>>> Hello Everyone,
>>>
>>>
>>> I use digitalocean for server and i install nginx and unicorn for
>>> django. I have one service for my project. I also want to add new django
>>> project and i made it with making new services.
>>>
>>> When my one project running the other project stop.
>>>
>>> How can i run two projects same time?
>>>
>>> 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: Django Gunicorn with Two Django App

2013-08-14 Thread Kelvin Wong
The error "Could not reliably determine the server's fully qualified domain 
name" is harmless, but the fix is easy. See...

https://help.ubuntu.com/community/ApacheMySQLPHP#Troubleshooting_Apache

If you are running Django under Nginx and Gunicorn, why are you restarting 
Apache anyway?

Your gateway issue is very common with Nginx and can be fixed by proper 
configuration of your reverse proxy and ensuring that your Gunicorns are 
actually running and handling traffic. I've used Supervisor to manage the 
Gunicorns and it works well for that purpose.

http://wiki.nginx.org/HttpProxyModule

http://docs.gunicorn.org/en/latest/deploy.html

If you find the reverse proxy set-up too confusing, I'd recommend mod_wsgi. 
I find it easier to set-up and manage than other methods.

K

On Tuesday, August 13, 2013 1:11:28 PM UTC-7, Muhammed TÜFEKYAPAN wrote:
>
> I edit my port, sites enabled files etc.
>
> Now two sites run different port but i got an error: 502 Bad Gateway
>
> Also when i type "service apache2 restart" there is error "Could not 
> reliably determine the server's fully qualified domain name, using 
> 127.0.0.1 for ServerName" error. 
>
> I think real problem this.
>
>
> On Tuesday, August 13, 2013 5:31:07 PM UTC+3, Muhammed TÜFEKYAPAN wrote:
>>
>> Hello Everyone,
>>
>>
>> I use digitalocean for server and i install nginx and unicorn for django. 
>> I have one service for my project. I also want to add new django project 
>> and i made it with making new services. 
>>
>> When my one project running the other project stop. 
>>
>> How can i run two projects same time?
>>
>> 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.




Re: Error importing middleware django.contrib.sessions.middleware

2013-08-14 Thread Kelvin Wong
What version of Django are you running?

$ python2.7 -c "import django; print django.VERSION;"

Did this ever work before you enabled Memcached? Did you remove the extra 
CACHES dictionary from settings.py?

What was the full traceback from the Django shell?

K

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




Querying content objects "forward" r/s

2013-08-14 Thread Nora Olsen
Hi,

Based on the Django documentation for Bookmarks and tags, is it possible to 
have a queryset to find a list of bookmarks from a list of Tags?

==> TaggedItem*.*objects*.*filter(content_type__pk*=*bookmark_type*.*id)

I want to retrieve a list of bookmarks. 

In my use case, I have users who create a list of tags for certain 
bookmarks. How do I retrieve a list of bookmarks for that users based on 
his tags?




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