Query Set and Output

2013-08-06 Thread Muhammed TÜFEKYAPAN
Hello everyone, I write a basic model in django 1.5.1 My model is looks like this: class Excuse(models.Model): text = models.CharField(max_length=300) def __unicode__(self): return self.text And i have a basic function to get random excuse from this model. def home(request): output = Excus

Re: Query Set and Output

2013-08-07 Thread Muhammed TÜFEKYAPAN
It looks like this: {{ output }} On Wednesday, August 7, 2013 6:58:17 AM UTC+3, Bulkan-Savun Evcimen wrote: > > Hi there, > > What does your template index.html look like ? > > Cheers > > http://bulkan-evcimen.com > > > On Wed, Aug 7, 2013 at 1:19 PM,

Re: Query Set and Output

2013-08-07 Thread Muhammed TÜFEKYAPAN
"outout = Excuse.objects.order_by('?')[0]" This works well. Thank you. On Wednesday, August 7, 2013 6:19:01 AM UTC+3, Muhammed TÜFEKYAPAN wrote: > > Hello everyone, > > I write a basic model in django 1.5.1 > > My model is looks like this

Re: check user status

2013-08-13 Thread Muhammed TÜFEKYAPAN
What do you mean with like? Is it Facebook like or other action on your project? On Tuesday, August 13, 2013 8:40:37 AM UTC+3, Tcheck wrote: > > Hi, > How do i check whether a user has liked an object or not? And if yes, how > do block the user from liking it again? Any help will be appreciated.

Django Gunicorn with Two Django App

2013-08-13 Thread Muhammed TÜFEKYAPAN
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

Re: Django Gunicorn with Two Django App

2013-08-13 Thread Muhammed TÜFEKYAPAN
ot; 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 djan

Re: Django Gunicorn with Two Django App

2013-08-13 Thread Muhammed TÜFEKYAPAN
exiting (pid: 16834) 2013-08-13 20:09:20 [16822] [INFO] Shutting down: Master On Tuesday, August 13, 2013 11:11:28 PM UTC+3, 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 wh

Defining new project as a service at nignx

2013-10-14 Thread Muhammed TÜFEKYAPAN
Hello everybody, I use digitalocean as a server. I upload my django project files on my server and start to setup. Made postgresql settings etc but I can't define my new project as a new service on nginx. How can I define my new projest as a service and make possible to start it as "service bl

Re: Defining new project as a service at nignx

2013-10-14 Thread Muhammed TÜFEKYAPAN
+3, sacrac wrote: > > Hi you need read this > > http://wiki.nginx.org/ServerBlockExample > > http://wiki.nginx.org/DjangoFastCGI > > Cheers > > > On Mon, Oct 14, 2013 at 11:17 AM, Muhammed TÜFEKYAPAN > > > wrote: > >> Hello everybody, >> >

Re: Defining new project as a service at nignx

2013-10-15 Thread Muhammed TÜFEKYAPAN
Hello everyone, Yes I know that but now my problem is our new project doesn't seen on services list and so I can't start it. I use gunicorn. How can I made it? On Monday, October 14, 2013 10:03:22 PM UTC+3, Javier Guerra wrote: > > On Mon, Oct 14, 2013 at 12:17 PM, Muh

PostgreSQL OperationalError

2013-10-18 Thread Muhammed TÜFEKYAPAN
Hello, I just start to publish my app on web. Everything going well but I face a new problem, before I never face. Site working but sometimes raise error like this; OperationalError at / fe_sendauth: no password supplied Full error looks like this; OperationalError at / fe_sendauth: no

Re: PostgreSQL OperationalError

2013-10-18 Thread Muhammed TÜFEKYAPAN
gin/password didn't > match. > > Regards, > Xavier, > Linovia. > > Le 18 oct. 2013 à 10:28, Muhammed TÜFEKYAPAN a > écrit : > > Hello, > > > I just start to publish my app on web. Everything going well but I face a > new problem, before I never face. S

Re: PostgreSQL OperationalError

2013-10-18 Thread Muhammed TÜFEKYAPAN
I restart and problem solved. Thanks everbody. Best. On Friday, October 18, 2013 11:28:45 AM UTC+3, Muhammed TÜFEKYAPAN wrote: > > Hello, > > > I just start to publish my app on web. Everything going well but I face a > new problem, before I never face. Site working but som

Closing modal when user sign up or login

2014-10-08 Thread Muhammed Tüfekyapan
Hello everyone, I have a form. All users see this form. My needs is like this; - If user logged in, save their settings. - If user doesn't logged in, first show him a modal - If he login or sign up, close modal and save their settings. (settings shouldn't be lost.) For now my template looks li

Working with Google Analytics API

2014-10-22 Thread Muhammed Tüfekyapan
Hi Everyone, I want to make an app. User come on site, they signed in and give access to their google analytics account. And I generate some reports for them. I try to use Google Analytics API but I think I use the wrong one. https://developers.google.com/analytics/ Which one I should use?

Serving static files (admin panel and others)

2014-12-13 Thread Muhammed Tüfekyapan
Hello everyone, I try many things to serve .css files but I can't do that. How can i serve .css and .js files in Django 1.7? I typed django manage.py collectstatic but still my admin panel don't load css. What can i do? Best. -- You received this message because you are subscribed to th

Re: Serving static files (admin panel and others)

2014-12-13 Thread Muhammed Tüfekyapan
I find the problem. Problem was the file dir nginx looking for static file is different than I used for static file. I changed the files location and it solved. Thanks for response. On Sunday, December 14, 2014 4:31:49 AM UTC+2, Florian Schweikert wrote: > > On 14/12/14 00:55, Mu