Re: Send message to SMS Gateway

2014-11-06 Thread ngangsia akumbo
There are free gateways like kannel and vumi

On Sunday, June 24, 2012 11:37:21 AM UTC+1, Andreas wrote:
>
> Have a look at a Bulk SMS Gatway from txtNation - SMS Gateway.
> See the SMPP API on-line at:
> http://wiki.txtnation.com/wiki/SMPP_Bulk 
>
> and their info on http://gateway.txtnation.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/c5cbe404-dbc0-474a-acdf-4a6e3d23080b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django bulk sms

2014-11-06 Thread ngangsia akumbo
i have a mmodels like this

from django.db import models

# Create your models here.
class Text(models.Model):
name = models.CharField(max_length=100, unique=True)
number = models.IntegerField(default=0)

def __unicode__(self):
return self.name


i wish to connect this with kannel so i can send bulk sms , any ideas

-- 
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/596199bf-ea01-4de7-927e-4a0989c9bb60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


rapidsms

2014-10-29 Thread ngangsia akumbo
I just got a new project to build an sms app to be used to communicate 
within a particular group of people..

I intend to use rapidsms . I dont even now how much to ask them. This is my 
first contract as a python programmer.

Any ideas ???

-- 
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/25c942e1-096b-4d3a-9c56-fe53e418b561%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: unbalanced parenthesis

2014-09-22 Thread ngangsia akumbo
Thanks for the tips

On Monday, September 22, 2014 8:49:37 AM UTC+1, ngangsia akumbo wrote:
>
> Please don't tell me to use google because i dont post here without google 
> for a solution
>
> On Wednesday, September 17, 2014 4:36:40 PM UTC+1, mark wrote:
>>
>> There is no way anyone can help you with this limited information. 
>>
>> 1. Please read - http://www.catb.org/esr/faqs/smart-questions.html
>>
>> 2. Always use Google first before posting a question. Look at the error 
>> message - the package re threw the exception with the message of 
>> "unbalanced parenthesis". You are working in python. Google will hep you - 
>> search on "python re unbalanced parenthesis" - 278,000 hits. Lots of 
>> information to help track down the problem. Ignore the misspelling of 
>> parenthesis
>>
>> 3. If you are still confused, then post the relevant code snippets and 
>> what you have done to solve the problem and what you do not understand. 
>>
>> If all of the above does not work, then send me at least three bitcoins 
>> and I will look at your code to find the problem.just kidding. The 
>> point is that no one in the forum is paid to solve your problems, so be 
>> respectful of everyone's donated time and make the effort to (1) 
>> solve your own problem first and (2) then ask very specific questions.
>>
>> Mark
>>
>> On Wed, Sep 17, 2014 at 8:14 AM, ngangsia akumbo <ngan...@gmail.com> 
>> wrote:
>>
>>> i dont understand what is going on i need some help
>>> error at /admin/
>>>
>>> unbalanced parenthesis
>>>
>>> Request Method:GETRequest URL:http://localhost:8000/admin/Django 
>>> Version:1.4.3Exception Type:errorException Value:
>>>
>>> unbalanced parenthesis
>>>
>>> Exception Location:/usr/lib/python2.7/re.py in _compile, line 244Python 
>>> Executable:/usr/bin/pythonPython Version:2.7.6Python Path:
>>>
>>> ['/home/yems/apps/project1',
>>>  '/usr/lib/python2.7/dist-packages',
>>>  '/usr/local/lib/python2.7/dist-packages/django_mptt-0.6.0-py2.7.egg',
>>>  '/usr/local/lib/python2.7/dist-packages/pytz-2014.7-py2.7.egg',
>>>  '/usr/lib/python2.7',
>>>  '/usr/lib/python2.7/plat-i386-linux-gnu',
>>>  '/usr/lib/python2.7/lib-tk',
>>>  '/usr/lib/python2.7/lib-old',
>>>  '/usr/lib/python2.7/lib-dynload',
>>>  '/usr/local/lib/python2.7/dist-packages',
>>>  '/usr/lib/python2.7/dist-packages/PILcompat',
>>>  '/usr/lib/python2.7/dist-packages/gst-0.10',
>>>  '/usr/lib/python2.7/dist-packages/gtk-2.0',
>>>  '/usr/lib/pymodules/python2.7',
>>>  '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
>>>  '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
>>>
>>> Server time:Wed, 17 Sep 2014 16:13:15 +0100
>>>
>>> -- 
>>> 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/88f2339c-1c46-4d14-b604-a0516cc95151%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/88f2339c-1c46-4d14-b604-a0516cc95151%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

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


Re: unbalanced parenthesis

2014-09-22 Thread ngangsia akumbo
Please don't tell me to use google because i dont post here without google 
for a solution

On Wednesday, September 17, 2014 4:36:40 PM UTC+1, mark wrote:
>
> There is no way anyone can help you with this limited information. 
>
> 1. Please read - http://www.catb.org/esr/faqs/smart-questions.html
>
> 2. Always use Google first before posting a question. Look at the error 
> message - the package re threw the exception with the message of 
> "unbalanced parenthesis". You are working in python. Google will hep you - 
> search on "python re unbalanced parenthesis" - 278,000 hits. Lots of 
> information to help track down the problem. Ignore the misspelling of 
> parenthesis
>
> 3. If you are still confused, then post the relevant code snippets and 
> what you have done to solve the problem and what you do not understand. 
>
> If all of the above does not work, then send me at least three bitcoins 
> and I will look at your code to find the problem.just kidding. The 
> point is that no one in the forum is paid to solve your problems, so be 
> respectful of everyone's donated time and make the effort to (1) 
> solve your own problem first and (2) then ask very specific questions.
>
> Mark
>
> On Wed, Sep 17, 2014 at 8:14 AM, ngangsia akumbo <ngan...@gmail.com 
> > wrote:
>
>> i dont understand what is going on i need some help
>> error at /admin/
>>
>> unbalanced parenthesis
>>
>> Request Method:GETRequest URL:http://localhost:8000/admin/Django Version:
>> 1.4.3Exception Type:errorException Value:
>>
>> unbalanced parenthesis
>>
>> Exception Location:/usr/lib/python2.7/re.py in _compile, line 244Python 
>> Executable:/usr/bin/pythonPython Version:2.7.6Python Path:
>>
>> ['/home/yems/apps/project1',
>>  '/usr/lib/python2.7/dist-packages',
>>  '/usr/local/lib/python2.7/dist-packages/django_mptt-0.6.0-py2.7.egg',
>>  '/usr/local/lib/python2.7/dist-packages/pytz-2014.7-py2.7.egg',
>>  '/usr/lib/python2.7',
>>  '/usr/lib/python2.7/plat-i386-linux-gnu',
>>  '/usr/lib/python2.7/lib-tk',
>>  '/usr/lib/python2.7/lib-old',
>>  '/usr/lib/python2.7/lib-dynload',
>>  '/usr/local/lib/python2.7/dist-packages',
>>  '/usr/lib/python2.7/dist-packages/PILcompat',
>>  '/usr/lib/python2.7/dist-packages/gst-0.10',
>>  '/usr/lib/python2.7/dist-packages/gtk-2.0',
>>  '/usr/lib/pymodules/python2.7',
>>  '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
>>  '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
>>
>> Server time:Wed, 17 Sep 2014 16:13:15 +0100
>>
>> -- 
>> 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/88f2339c-1c46-4d14-b604-a0516cc95151%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/88f2339c-1c46-4d14-b604-a0516cc95151%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: unbalanced parenthesis

2014-09-22 Thread ngangsia akumbo
I did it bro it was a url prob

On Thursday, September 18, 2014 8:08:38 AM UTC+1, James Schneider wrote:
>
> You likely have a regular expression that is trying to match using groups, 
> and a '(' or ')' are missing or added as extras without a mate.
>
> http://lmgtfy.com/?q=Python+unbalanced+parenthesis=1
>
> -James
>
> On Wednesday, September 17, 2014, ngangsia akumbo <ngang...@gmail.com> 
> wrote:
>
>> i dont understand what is going on i need some help
>> error at /admin/
>>
>> unbalanced parenthesis
>>
>> Request Method:GETRequest URL:http://localhost:8000/admin/Django Version:
>> 1.4.3Exception Type:errorException Value:
>>
>> unbalanced parenthesis
>>
>> Exception Location:/usr/lib/python2.7/re.py in _compile, line 244Python 
>> Executable:/usr/bin/pythonPython Version:2.7.6Python Path:
>>
>> ['/home/yems/apps/project1',
>>  '/usr/lib/python2.7/dist-packages',
>>  '/usr/local/lib/python2.7/dist-packages/django_mptt-0.6.0-py2.7.egg',
>>  '/usr/local/lib/python2.7/dist-packages/pytz-2014.7-py2.7.egg',
>>  '/usr/lib/python2.7',
>>  '/usr/lib/python2.7/plat-i386-linux-gnu',
>>  '/usr/lib/python2.7/lib-tk',
>>  '/usr/lib/python2.7/lib-old',
>>  '/usr/lib/python2.7/lib-dynload',
>>  '/usr/local/lib/python2.7/dist-packages',
>>  '/usr/lib/python2.7/dist-packages/PILcompat',
>>  '/usr/lib/python2.7/dist-packages/gst-0.10',
>>  '/usr/lib/python2.7/dist-packages/gtk-2.0',
>>  '/usr/lib/pymodules/python2.7',
>>  '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
>>  '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
>>
>> Server time:Wed, 17 Sep 2014 16:13:15 +0100
>>
>> -- 
>> 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/88f2339c-1c46-4d14-b604-a0516cc95151%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/88f2339c-1c46-4d14-b604-a0516cc95151%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

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


unbalanced parenthesis

2014-09-17 Thread ngangsia akumbo
i dont understand what is going on i need some help
error at /admin/

unbalanced parenthesis

Request Method:GETRequest URL:http://localhost:8000/admin/Django Version:
1.4.3Exception Type:errorException Value:

unbalanced parenthesis

Exception Location:/usr/lib/python2.7/re.py in _compile, line 244Python 
Executable:/usr/bin/pythonPython Version:2.7.6Python Path:

['/home/yems/apps/project1',
 '/usr/lib/python2.7/dist-packages',
 '/usr/local/lib/python2.7/dist-packages/django_mptt-0.6.0-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/pytz-2014.7-py2.7.egg',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-i386-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/python2.7/dist-packages/gst-0.10',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']

Server time:Wed, 17 Sep 2014 16:13:15 +0100

-- 
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/88f2339c-1c46-4d14-b604-a0516cc95151%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: heroku django

2014-09-11 Thread ngangsia akumbo
Thanks very much bro 

can we meet online my skype

ngangsi.richard

On Thursday, September 11, 2014 1:21:06 PM UTC+1, Kevin Ndung'u wrote:
>
> Yes, you can. You can develop locally then when the time comes to deploy 
> it then add it to Github and subsequently to Heroku.
>
> I personally prefer this since you get to focus on the app first and 
> deploy later.
>
> On Thursday, September 11, 2014 11:29:39 AM UTC+3, ngangsia akumbo wrote:
>>
>> i have a problem
>> can i create a complete django application on my machine before deplying 
>> it to heroku
>>
>> that is i start by creating the django app on my local linux machine 
>> before trying to deploy it online
>> i a confused here a bit pleas i need some 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4ff8c27e-61c1-49ad-8d78-244df29c7447%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: heroku django

2014-09-11 Thread ngangsia akumbo
or should i create my app locally add it on git hub and clone it on heroku
if that is a better process please can some one guide me through?

On Thursday, September 11, 2014 9:29:39 AM UTC+1, ngangsia akumbo wrote:
>
> i have a problem
> can i create a complete django application on my machine before deplying 
> it to heroku
>
> that is i start by creating the django app on my local linux machine 
> before trying to deploy it online
> i a confused here a bit pleas i need some 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/60ccde59-d60f-4996-9fc8-ba4bf3a7ddb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


heroku django

2014-09-11 Thread ngangsia akumbo
i have a problem
can i create a complete django application on my machine before deplying it 
to heroku

that is i start by creating the django app on my local linux machine before 
trying to deploy it online
i a confused here a bit pleas i need some 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3bb112fb-3540-4eb2-af5a-4af264f801b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: error with heroku

2014-09-10 Thread ngangsia akumbo
thanks i have solved it

On Wednesday, September 10, 2014 9:06:20 AM UTC+1, ngangsia akumbo wrote:
>
> Please why am i having this error
>
> (djangoapps)yems firstapp # ls
> firstapp  manage.py  Procfile
>
>
> (djangoapps)yems firstapp # foreman start
> 08:47:00 web.1  | started with pid 4491
> 08:47:00 web.1  | exited with code 3
> 08:47:00 system | sending SIGTERM to all processes
> (djangoapps)yems firstapp # nano Procfile
> (djangoapps)yems firstapp # nano Procfile
> (djangoapps)yems firstapp # foreman start
> 09:04:29 web.1  | started with pid 4990
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4990] [INFO] Starting 
> gunicorn 19.1.1
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4990] [INFO] Listening at: 
> http://0.0.0.0:5000 (4990)
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4990] [INFO] Using worker: 
> sync
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4997] [INFO] Booting worker 
> with pid: 4997
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4997] [ERROR] Exception in 
> worker process:
> 09:04:31 web.1  | Traceback (most recent call last):
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py",
>  
> line 507, in spawn_worker
> 09:04:31 web.1  | worker.init_process()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/workers/base.py",
>  
> line 114, in init_process
> 09:04:31 web.1  | self.wsgi = self.app.wsgi()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
>  
> line 66, in wsgi
> 09:04:31 web.1  | self.callable = self.load()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
>  
> line 65, in load
> 09:04:31 web.1  | return self.load_wsgiapp()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
>  
> line 52, in load_wsgiapp
> 09:04:31 web.1  | return util.import_app(self.app_uri)
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/util.py",
>  
> line 356, in import_app
> 09:04:31 web.1  | __import__(module)
> 09:04:31 web.1  | ImportError: No module named hellodjango.wsgi
> 09:04:31 web.1  | Traceback (most recent call last):
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py",
>  
> line 507, in spawn_worker
> 09:04:31 web.1  | worker.init_process()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/workers/base.py",
>  
> line 114, in init_process
> 09:04:31 web.1  | self.wsgi = self.app.wsgi()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
>  
> line 66, in wsgi
> 09:04:31 web.1  | self.callable = self.load()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
>  
> line 65, in load
> 09:04:31 web.1  | return self.load_wsgiapp()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
>  
> line 52, in load_wsgiapp
> 09:04:31 web.1  | return util.import_app(self.app_uri)
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/util.py",
>  
> line 356, in import_app
> 09:04:31 web.1  | __import__(module)
> 09:04:31 web.1  | ImportError: No module named hellodjango.wsgi
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4997] [INFO] Worker exiting 
> (pid: 4997)
> 09:04:31 web.1  | Traceback (most recent call last):
> 09:04:31 web.1  |   File "/home/yems/apps/djangoapps/bin/gunicorn", line 
> 11, in 
> 09:04:31 web.1  | sys.exit(run())
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
>  
> line 74, in run
> 09:04:31 web.1  | WSGIApplication("%(prog)s [OPTIONS] 
> [APP_MODULE]").run()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
>  
> line 185, in run
> 09:04:31 web.1  | super(Application, self).run()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
>  
> line 71, in run
> 09:04:31 web.1  | Arbiter(self).run()
&

Re: error with heroku

2014-09-10 Thread ngangsia akumbo
i am following this tutorial

https://devcenter.heroku.com/articles/getting-started-with-django

On Wednesday, September 10, 2014 9:06:20 AM UTC+1, ngangsia akumbo wrote:
>
> Please why am i having this error
>
> (djangoapps)yems firstapp # ls
> firstapp  manage.py  Procfile
>
>
> (djangoapps)yems firstapp # foreman start
> 08:47:00 web.1  | started with pid 4491
> 08:47:00 web.1  | exited with code 3
> 08:47:00 system | sending SIGTERM to all processes
> (djangoapps)yems firstapp # nano Procfile
> (djangoapps)yems firstapp # nano Procfile
> (djangoapps)yems firstapp # foreman start
> 09:04:29 web.1  | started with pid 4990
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4990] [INFO] Starting 
> gunicorn 19.1.1
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4990] [INFO] Listening at: 
> http://0.0.0.0:5000 (4990)
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4990] [INFO] Using worker: 
> sync
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4997] [INFO] Booting worker 
> with pid: 4997
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4997] [ERROR] Exception in 
> worker process:
> 09:04:31 web.1  | Traceback (most recent call last):
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py",
>  
> line 507, in spawn_worker
> 09:04:31 web.1  | worker.init_process()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/workers/base.py",
>  
> line 114, in init_process
> 09:04:31 web.1  | self.wsgi = self.app.wsgi()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
>  
> line 66, in wsgi
> 09:04:31 web.1  | self.callable = self.load()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
>  
> line 65, in load
> 09:04:31 web.1  | return self.load_wsgiapp()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
>  
> line 52, in load_wsgiapp
> 09:04:31 web.1  | return util.import_app(self.app_uri)
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/util.py",
>  
> line 356, in import_app
> 09:04:31 web.1  | __import__(module)
> 09:04:31 web.1  | ImportError: No module named hellodjango.wsgi
> 09:04:31 web.1  | Traceback (most recent call last):
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py",
>  
> line 507, in spawn_worker
> 09:04:31 web.1  | worker.init_process()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/workers/base.py",
>  
> line 114, in init_process
> 09:04:31 web.1  | self.wsgi = self.app.wsgi()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
>  
> line 66, in wsgi
> 09:04:31 web.1  | self.callable = self.load()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
>  
> line 65, in load
> 09:04:31 web.1  | return self.load_wsgiapp()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
>  
> line 52, in load_wsgiapp
> 09:04:31 web.1  | return util.import_app(self.app_uri)
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/util.py",
>  
> line 356, in import_app
> 09:04:31 web.1  | __import__(module)
> 09:04:31 web.1  | ImportError: No module named hellodjango.wsgi
> 09:04:31 web.1  | [2014-09-10 09:04:31 +] [4997] [INFO] Worker exiting 
> (pid: 4997)
> 09:04:31 web.1  | Traceback (most recent call last):
> 09:04:31 web.1  |   File "/home/yems/apps/djangoapps/bin/gunicorn", line 
> 11, in 
> 09:04:31 web.1  | sys.exit(run())
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
>  
> line 74, in run
> 09:04:31 web.1  | WSGIApplication("%(prog)s [OPTIONS] 
> [APP_MODULE]").run()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
>  
> line 185, in run
> 09:04:31 web.1  | super(Application, self).run()
> 09:04:31 web.1  |   File 
> "/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
>  
>

error with heroku

2014-09-10 Thread ngangsia akumbo
Please why am i having this error

(djangoapps)yems firstapp # ls
firstapp  manage.py  Procfile


(djangoapps)yems firstapp # foreman start
08:47:00 web.1  | started with pid 4491
08:47:00 web.1  | exited with code 3
08:47:00 system | sending SIGTERM to all processes
(djangoapps)yems firstapp # nano Procfile
(djangoapps)yems firstapp # nano Procfile
(djangoapps)yems firstapp # foreman start
09:04:29 web.1  | started with pid 4990
09:04:31 web.1  | [2014-09-10 09:04:31 +] [4990] [INFO] Starting 
gunicorn 19.1.1
09:04:31 web.1  | [2014-09-10 09:04:31 +] [4990] [INFO] Listening at: 
http://0.0.0.0:5000 (4990)
09:04:31 web.1  | [2014-09-10 09:04:31 +] [4990] [INFO] Using worker: 
sync
09:04:31 web.1  | [2014-09-10 09:04:31 +] [4997] [INFO] Booting worker 
with pid: 4997
09:04:31 web.1  | [2014-09-10 09:04:31 +] [4997] [ERROR] Exception in 
worker process:
09:04:31 web.1  | Traceback (most recent call last):
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py",
 
line 507, in spawn_worker
09:04:31 web.1  | worker.init_process()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/workers/base.py",
 
line 114, in init_process
09:04:31 web.1  | self.wsgi = self.app.wsgi()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
 
line 66, in wsgi
09:04:31 web.1  | self.callable = self.load()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
 
line 65, in load
09:04:31 web.1  | return self.load_wsgiapp()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
 
line 52, in load_wsgiapp
09:04:31 web.1  | return util.import_app(self.app_uri)
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/util.py",
 
line 356, in import_app
09:04:31 web.1  | __import__(module)
09:04:31 web.1  | ImportError: No module named hellodjango.wsgi
09:04:31 web.1  | Traceback (most recent call last):
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py",
 
line 507, in spawn_worker
09:04:31 web.1  | worker.init_process()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/workers/base.py",
 
line 114, in init_process
09:04:31 web.1  | self.wsgi = self.app.wsgi()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
 
line 66, in wsgi
09:04:31 web.1  | self.callable = self.load()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
 
line 65, in load
09:04:31 web.1  | return self.load_wsgiapp()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
 
line 52, in load_wsgiapp
09:04:31 web.1  | return util.import_app(self.app_uri)
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/util.py",
 
line 356, in import_app
09:04:31 web.1  | __import__(module)
09:04:31 web.1  | ImportError: No module named hellodjango.wsgi
09:04:31 web.1  | [2014-09-10 09:04:31 +] [4997] [INFO] Worker exiting 
(pid: 4997)
09:04:31 web.1  | Traceback (most recent call last):
09:04:31 web.1  |   File "/home/yems/apps/djangoapps/bin/gunicorn", line 
11, in 
09:04:31 web.1  | sys.exit(run())
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
 
line 74, in run
09:04:31 web.1  | WSGIApplication("%(prog)s [OPTIONS] 
[APP_MODULE]").run()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
 
line 185, in run
09:04:31 web.1  | super(Application, self).run()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/app/base.py",
 
line 71, in run
09:04:31 web.1  | Arbiter(self).run()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py",
 
line 169, in run
09:04:31 web.1  | self.manage_workers()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py",
 
line 477, in manage_workers
09:04:31 web.1  | self.spawn_workers()
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py",
 
line 542, in spawn_workers
09:04:31 web.1  | time.sleep(0.1 * random.random())
09:04:31 web.1  |   File 
"/home/yems/apps/djangoapps/local/lib/python2.7/site-packages/gunicorn/arbiter.py",
 
line 209, in handle_chld
09:04:31 web.1  | self.reap_workers()
09:04:31 web.1  |   File 

Re: deleting apps from heroku

2014-09-09 Thread ngangsia akumbo
i have done it 

On Tuesday, September 9, 2014 11:48:51 AM UTC+1, ngangsia akumbo wrote:
>
> please i have a free account in heroku and i have already 5 apps there how 
> do i delete some of them 
>
> i just want to delet some app on my heroku account
>

-- 
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/b93d084d-3bb7-42ce-a237-a273b33e343f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


deleting apps from heroku

2014-09-09 Thread ngangsia akumbo
please i have a free account in heroku and i have already 5 apps there how 
do i delete some of them 

i just want to delet some app on my heroku account

-- 
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/0c6d1da9-9a78-4d64-8949-a38ff98a037f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: settings.py

2014-09-08 Thread ngangsia akumbo
i am trying to host build an app to host it on heroku

On Monday, September 8, 2014 6:21:49 PM UTC+1, Andrew Pinkham wrote:
>
> Hi Ngangsia, 
>
> On Sep 8, 2014, at 12:16 PM, ngangsia akumbo <ngan...@gmail.com 
> > wrote: 
> > when i run the 
> > django-admin.py startproject this is the settings file i have 
>
> I've glanced through the file. It looks fine to me, but I may have missed 
> something. 
>
> > Please i need some help here dont understand what is going on 
>
> Are you following the tutorial? Are you experiencing a problem in 
> particular? We need a little bit more information before we can help you. 
>
> Andrew 
>
>

-- 
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/0ea822ab-37b8-43bd-b020-a2e216cb2c9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


settings.py

2014-09-08 Thread ngangsia akumbo
when i run the 
django-admin.py startproject this is the settings file i have

"""
Django settings for bphotel project.

For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'j-3!deoj%m-m_po8o3$zv8-qgkn1$j)!c!*s#)wdb!t95_39lo'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

TEMPLATE_DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',

MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

ROOT_URLCONF = 'bphotel.urls'

WSGI_APPLICATION = 'bphotel.wsgi.application'


# Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}

# Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/

STATIC_URL = '/static/'


Please i need some help here dont understand what is going on

-- 
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/d2c848fe-12df-46ca-85d5-8df5c25d0320%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying django on heroku

2014-09-08 Thread ngangsia akumbo
i still dont get it bro

On Sunday, September 7, 2014 10:04:51 PM UTC+1, Kevin Ndung'u wrote:
>
> As it says, just run those commands, setting your username and email, to 
> set your git identity (Username and Email address) which is required for 
> commits.
>
> On Saturday, September 6, 2014 1:21:09 PM UTC+3, ngangsia akumbo wrote:
>>
>> i have another error
>>
>> yems python-getting-started # git commit -m "Demo"
>>
>> *** Please tell me who you are.
>>
>> Run
>>
>>   git config --global user.email "y...@example.com"
>>   git config --global user.name "Your Name"
>>
>> to set your account's default identity.
>> Omit --global to set the identity only in this repository.
>>
>> fatal: unable to auto-detect email address (got 'root@yems.(none)')
>>
>>
>> On Friday, September 5, 2014 4:10:59 PM UTC+1, Koed00 wrote:
>>>
>>> Looks like Gunicorn can't find your app module hellodjango.wsgi
>>> Did you make a wsgi.py in your app folder as described in the Heroku 
>>> docs?
>>>
>>> On Friday, September 5, 2014 12:19:25 PM UTC+2, ngangsia akumbo wrote:
>>>>
>>>> i had a problem trying to deply django on heroku
>>>>
>>>> yems bphotel # foreman start
>>>> 11:13:37 web.1  | started with pid 9269
>>>> 11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Starting 
>>>> gunicorn 19.1.1
>>>> 11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Listening 
>>>> at: http://0.0.0.0:5000 (9269)
>>>> 11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Using 
>>>> worker: sync
>>>> 11:13:37 web.1  | [2014-09-05 11:13:37 +] [9276] [INFO] Booting 
>>>> worker with pid: 9276
>>>> 11:13:37 web.1  | [2014-09-05 11:13:37 +] [9276] [ERROR] Exception 
>>>> in worker process:
>>>> 11:13:37 web.1  | Traceback (most recent call last):
>>>> 11:13:37 web.1  |   File 
>>>> "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in 
>>>> spawn_worker
>>>> 11:13:37 web.1  | worker.init_process()
>>>> 11:13:37 web.1  |   File 
>>>> "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 
>>>> 114, in init_process
>>>> 11:13:37 web.1  | self.wsgi = self.app.wsgi()
>>>> 11:13:37 web.1  |   File 
>>>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 66, in 
>>>> wsgi
>>>> 11:13:37 web.1  | self.callable = self.load()
>>>> 11:13:37 web.1  |   File 
>>>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, 
>>>> in load
>>>> 11:13:37 web.1  | return self.load_wsgiapp()
>>>> 11:13:37 web.1  |   File 
>>>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, 
>>>> in load_wsgiapp
>>>> 11:13:37 web.1  | return util.import_app(self.app_uri)
>>>> 11:13:37 web.1  |   File 
>>>> "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 356, in 
>>>> import_app
>>>> 11:13:37 web.1  | __import__(module)
>>>> 11:13:37 web.1  | ImportError: No module named hellodjango.wsgi
>>>> 11:13:37 web.1  | Traceback (most recent call last):
>>>> 11:13:37 web.1  |   File 
>>>> "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in 
>>>> spawn_worker
>>>> 11:13:37 web.1  | worker.init_process()
>>>> 11:13:37 web.1  |   File 
>>>> "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 
>>>> 114, in init_process
>>>> 11:13:37 web.1  | self.wsgi = self.app.wsgi()
>>>> 11:13:37 web.1  |   File 
>>>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 66, in 
>>>> wsgi
>>>> 11:13:37 web.1  | self.callable = self.load()
>>>> 11:13:37 web.1  |   File 
>>>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, 
>>>> in load
>>>> 11:13:37 web.1  | return self.load_wsgiapp()
>>>> 11:13:37 web.1  |   File 
>>>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, 
>>>> in load_wsgiapp
>>>> 11:13:37 web.1  | return util.import_app(self.app_uri)
>>>> 11:13:37 

Re: deploying django on heroku

2014-09-06 Thread ngangsia akumbo
i have another error

yems python-getting-started # git commit -m "Demo"

*** Please tell me who you are.

Run

  git config --global user.email "y...@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@yems.(none)')


On Friday, September 5, 2014 4:10:59 PM UTC+1, Koed00 wrote:
>
> Looks like Gunicorn can't find your app module hellodjango.wsgi
> Did you make a wsgi.py in your app folder as described in the Heroku docs?
>
> On Friday, September 5, 2014 12:19:25 PM UTC+2, ngangsia akumbo wrote:
>>
>> i had a problem trying to deply django on heroku
>>
>> yems bphotel # foreman start
>> 11:13:37 web.1  | started with pid 9269
>> 11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Starting 
>> gunicorn 19.1.1
>> 11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Listening at: 
>> http://0.0.0.0:5000 (9269)
>> 11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Using worker: 
>> sync
>> 11:13:37 web.1  | [2014-09-05 11:13:37 +] [9276] [INFO] Booting 
>> worker with pid: 9276
>> 11:13:37 web.1  | [2014-09-05 11:13:37 +] [9276] [ERROR] Exception in 
>> worker process:
>> 11:13:37 web.1  | Traceback (most recent call last):
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in 
>> spawn_worker
>> 11:13:37 web.1  | worker.init_process()
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 
>> 114, in init_process
>> 11:13:37 web.1  | self.wsgi = self.app.wsgi()
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 66, in 
>> wsgi
>> 11:13:37 web.1  | self.callable = self.load()
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, 
>> in load
>> 11:13:37 web.1  | return self.load_wsgiapp()
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, 
>> in load_wsgiapp
>> 11:13:37 web.1  | return util.import_app(self.app_uri)
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 356, in 
>> import_app
>> 11:13:37 web.1  | __import__(module)
>> 11:13:37 web.1  | ImportError: No module named hellodjango.wsgi
>> 11:13:37 web.1  | Traceback (most recent call last):
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in 
>> spawn_worker
>> 11:13:37 web.1  | worker.init_process()
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 
>> 114, in init_process
>> 11:13:37 web.1  | self.wsgi = self.app.wsgi()
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 66, in 
>> wsgi
>> 11:13:37 web.1  | self.callable = self.load()
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, 
>> in load
>> 11:13:37 web.1  | return self.load_wsgiapp()
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, 
>> in load_wsgiapp
>> 11:13:37 web.1  | return util.import_app(self.app_uri)
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 356, in 
>> import_app
>> 11:13:37 web.1  | __import__(module)
>> 11:13:37 web.1  | ImportError: No module named hellodjango.wsgi
>> 11:13:37 web.1  | [2014-09-05 11:13:37 +] [9276] [INFO] Worker 
>> exiting (pid: 9276)
>> 11:13:37 web.1  | Traceback (most recent call last):
>> 11:13:37 web.1  |   File "/usr/local/bin/gunicorn", line 11, in 
>> 11:13:37 web.1  | sys.exit(run())
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 74, 
>> in run
>> 11:13:37 web.1  | WSGIApplication("%(prog)s [OPTIONS] 
>> [APP_MODULE]").run()
>> 11:13:37 web.1  |   File 
>> "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 185, in 
>> run
>> 11:13:37 web.1  | super(Application, self).run()
>> 11:13:37 web.1  |   File 
>> "/usr/loc

deploying django on heroku

2014-09-05 Thread ngangsia akumbo
i had a problem trying to deply django on heroku

yems bphotel # foreman start
11:13:37 web.1  | started with pid 9269
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Starting 
gunicorn 19.1.1
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Listening at: 
http://0.0.0.0:5000 (9269)
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Using worker: 
sync
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9276] [INFO] Booting worker 
with pid: 9276
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9276] [ERROR] Exception in 
worker process:
11:13:37 web.1  | Traceback (most recent call last):
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in 
spawn_worker
11:13:37 web.1  | worker.init_process()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 
114, in init_process
11:13:37 web.1  | self.wsgi = self.app.wsgi()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 66, in 
wsgi
11:13:37 web.1  | self.callable = self.load()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, 
in load
11:13:37 web.1  | return self.load_wsgiapp()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, 
in load_wsgiapp
11:13:37 web.1  | return util.import_app(self.app_uri)
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 356, in 
import_app
11:13:37 web.1  | __import__(module)
11:13:37 web.1  | ImportError: No module named hellodjango.wsgi
11:13:37 web.1  | Traceback (most recent call last):
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in 
spawn_worker
11:13:37 web.1  | worker.init_process()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 
114, in init_process
11:13:37 web.1  | self.wsgi = self.app.wsgi()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 66, in 
wsgi
11:13:37 web.1  | self.callable = self.load()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, 
in load
11:13:37 web.1  | return self.load_wsgiapp()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, 
in load_wsgiapp
11:13:37 web.1  | return util.import_app(self.app_uri)
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 356, in 
import_app
11:13:37 web.1  | __import__(module)
11:13:37 web.1  | ImportError: No module named hellodjango.wsgi
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9276] [INFO] Worker exiting 
(pid: 9276)
11:13:37 web.1  | Traceback (most recent call last):
11:13:37 web.1  |   File "/usr/local/bin/gunicorn", line 11, in 
11:13:37 web.1  | sys.exit(run())
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 74, 
in run
11:13:37 web.1  | WSGIApplication("%(prog)s [OPTIONS] 
[APP_MODULE]").run()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 185, in 
run
11:13:37 web.1  | super(Application, self).run()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 71, in 
run
11:13:37 web.1  | Arbiter(self).run()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 169, in 
run
11:13:37 web.1  | self.manage_workers()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 477, in 
manage_workers
11:13:37 web.1  | self.spawn_workers()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 542, in 
spawn_workers
11:13:37 web.1  | time.sleep(0.1 * random.random())
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 209, in 
handle_chld
11:13:37 web.1  | self.reap_workers()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 459, in 
reap_workers
11:13:37 web.1  | raise HaltServer(reason, self.WORKER_BOOT_ERROR)
11:13:37 web.1  | gunicorn.errors.HaltServer: 
11:13:37 web.1  | exited with code 1
11:13:37 system | sending SIGTERM to all processes



Please some help here 
am using linux mint

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

deploying django on gunicorn

2014-09-05 Thread ngangsia akumbo
found this error trying to run the command 

foreman start

yems bphotel # foreman start
11:13:37 web.1  | started with pid 9269
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Starting 
gunicorn 19.1.1
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Listening at: 
http://0.0.0.0:5000 (9269)
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9269] [INFO] Using worker: 
sync
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9276] [INFO] Booting worker 
with pid: 9276
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9276] [ERROR] Exception in 
worker process:
11:13:37 web.1  | Traceback (most recent call last):
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in 
spawn_worker
11:13:37 web.1  | worker.init_process()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 
114, in init_process
11:13:37 web.1  | self.wsgi = self.app.wsgi()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 66, in 
wsgi
11:13:37 web.1  | self.callable = self.load()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, 
in load
11:13:37 web.1  | return self.load_wsgiapp()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, 
in load_wsgiapp
11:13:37 web.1  | return util.import_app(self.app_uri)
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 356, in 
import_app
11:13:37 web.1  | __import__(module)
11:13:37 web.1  | ImportError: No module named hellodjango.wsgi
11:13:37 web.1  | Traceback (most recent call last):
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in 
spawn_worker
11:13:37 web.1  | worker.init_process()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 
114, in init_process
11:13:37 web.1  | self.wsgi = self.app.wsgi()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 66, in 
wsgi
11:13:37 web.1  | self.callable = self.load()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, 
in load
11:13:37 web.1  | return self.load_wsgiapp()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, 
in load_wsgiapp
11:13:37 web.1  | return util.import_app(self.app_uri)
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 356, in 
import_app
11:13:37 web.1  | __import__(module)
11:13:37 web.1  | ImportError: No module named hellodjango.wsgi
11:13:37 web.1  | [2014-09-05 11:13:37 +] [9276] [INFO] Worker exiting 
(pid: 9276)
11:13:37 web.1  | Traceback (most recent call last):
11:13:37 web.1  |   File "/usr/local/bin/gunicorn", line 11, in 
11:13:37 web.1  | sys.exit(run())
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 74, 
in run
11:13:37 web.1  | WSGIApplication("%(prog)s [OPTIONS] 
[APP_MODULE]").run()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 185, in 
run
11:13:37 web.1  | super(Application, self).run()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 71, in 
run
11:13:37 web.1  | Arbiter(self).run()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 169, in 
run
11:13:37 web.1  | self.manage_workers()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 477, in 
manage_workers
11:13:37 web.1  | self.spawn_workers()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 542, in 
spawn_workers
11:13:37 web.1  | time.sleep(0.1 * random.random())
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 209, in 
handle_chld
11:13:37 web.1  | self.reap_workers()
11:13:37 web.1  |   File 
"/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 459, in 
reap_workers
11:13:37 web.1  | raise HaltServer(reason, self.WORKER_BOOT_ERROR)
11:13:37 web.1  | gunicorn.errors.HaltServer: 
11:13:37 web.1  | exited with code 1
11:13:37 system | sending SIGTERM to all processes

-- 
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/aeeda74f-3c2a-4d8c-b41b-d0b5801c385b%40googlegroups.com.
For more options, visit 

Re: hosting django app

2014-08-27 Thread ngangsia akumbo
thanks

On Tuesday, August 26, 2014 2:28:03 PM UTC+1, wuo...@gmail.com wrote:
>
> https://www.digitalocean.com/?refcode=2bcdb0958160
>
> I paying 5$ in month. Very good support.
>
> вторник, 26 августа 2014 г., 13:46:12 UTC+4 пользователь ngangsia akumbo 
> написал:
>>
>> thanks guys
>>
>>>
>>>
>> On Friday, August 22, 2014 7:29:02 PM UTC+1, Cal Leeming [iops.io] wrote:
>>>
>>> Have a look at Heroku too
>>>
>>> Alternative, your own VPS on DigitalOcean if you have enough in-house 
>>> devops guys
>>>
>>> Cal
>>>
>>>
>>> On Fri, Aug 22, 2014 at 9:25 AM, ngangsia akumbo <ngan...@gmail.com> 
>>> wrote:
>>>
>>>> my boss uses php to build web apps
>>>>
>>>> he is n9ot very convince that django can be very cheap in hosting as 
>>>> php.
>>>>
>>>> is there any way i can host a django app whic is as cheap as php?
>>>>  
>>>> -- 
>>>> 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/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>

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


Re: hosting django app

2014-08-26 Thread ngangsia akumbo
thanks guys

>
>
On Friday, August 22, 2014 7:29:02 PM UTC+1, Cal Leeming [iops.io] wrote:
>
> Have a look at Heroku too
>
> Alternative, your own VPS on DigitalOcean if you have enough in-house 
> devops guys
>
> Cal
>
>
> On Fri, Aug 22, 2014 at 9:25 AM, ngangsia akumbo <ngan...@gmail.com 
> > wrote:
>
>> my boss uses php to build web apps
>>
>> he is n9ot very convince that django can be very cheap in hosting as php.
>>
>> is there any way i can host a django app whic is as cheap as php?
>>  
>> -- 
>> 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/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: hosting django app

2014-08-22 Thread ngangsia akumbo
thanks bro

On Friday, August 22, 2014 1:36:32 PM UTC+1, Jonathan Querubina wrote:
>
> dreamhost.com
>
> Sent from my iPhone
>
> On Aug 22, 2014, at 05:25, ngangsia akumbo <ngan...@gmail.com 
> > wrote:
>
> my boss uses php to build web apps
>
> he is n9ot very convince that django can be very cheap in hosting as php.
>
> is there any way i can host a django app whic is as cheap as php?
>
> -- 
> 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/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

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


Re: hosting django app

2014-08-22 Thread ngangsia akumbo
ok thanks

On Friday, August 22, 2014 9:28:54 AM UTC+1, Tundebabzy wrote:
>
> Google Redhat Openshift
> On 22 Aug 2014 09:25, "ngangsia akumbo" <ngan...@gmail.com > 
> wrote:
>
>> my boss uses php to build web apps
>>
>> he is n9ot very convince that django can be very cheap in hosting as php.
>>
>> is there any way i can host a django app whic is as cheap as php?
>>  
>> -- 
>> 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/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

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


Re: cms web buyilding

2014-08-22 Thread ngangsia akumbo
thanks bro

On Friday, August 22, 2014 10:48:30 AM UTC+1, somecallitblues wrote:
>
> There's nothing else to be said mate
> On 22/08/2014 6:35 pm, "ngangsia akumbo" <ngan...@gmail.com > 
> wrote:
>
>> Then i should be very comfortable with my django.
>>
>> Any more comments on that? 
>>
>> On Tuesday, August 19, 2014 11:23:07 AM UTC+1, Tom Evans wrote:
>>>
>>> On Mon, Aug 18, 2014 at 9:00 AM, ngangsia akumbo <ngan...@gmail.com> 
>>> wrote: 
>>> > then if drupal , jomlam has what django has then why are u building 
>>> app with 
>>> > django, that requires much coding? 
>>> > 
>>>
>>> Drupal and Joomla are CMS applications. They allow you to build Drupal 
>>> and Joomla CMS apps. They are all very similar and do similar things. 
>>> If you want to do something that they cannot do, it is difficult 
>>> because everything you have to do must be done in the way that Drupal 
>>> or Joomla say you must do things. 
>>>
>>> So CMS applications allow you to easily build CMS applications, but 
>>> make it difficult to build non CMS applications. 
>>>
>>> Django is a library for doing things with web requests, including 
>>> generating HTML. It can do anything you want with web requests. It 
>>> does not become more difficult to utilise django when the project is 
>>> more complex. 
>>>
>>> When you hire someone who is good at building CMS applications, you 
>>> are hiring someone who will be very good at building a simple CMS, but 
>>> will struggle if you want to do something complex, bespoke or just 
>>> "not CMS-like". 
>>>
>>> When you hire someone who is good at building Django projects, you are 
>>> hiring someone who can build whatever it is you can think of. 
>>>
>>> If you are thinking about which skill set it is worth learning, the 
>>> same applies. Learning Django well will make you a more competent and 
>>> useful developer than learning how to operate a specific CMS platform. 
>>>
>>> On the other hand, many people make a good living by selling their CMS 
>>> skills to people who don't know better*. 
>>>
>>> Cheers 
>>>
>>> Tom 
>>>
>>> * If this seems derogatory, you should see the paragraph I deleted.. 
>>>
>>  -- 
>> 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/0ea59364-1b48-4753-b109-cfc3c0de779f%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/0ea59364-1b48-4753-b109-cfc3c0de779f%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

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


Re: cms web buyilding

2014-08-22 Thread ngangsia akumbo
Then i should be very comfortable with my django.

Any more comments on that? 

On Tuesday, August 19, 2014 11:23:07 AM UTC+1, Tom Evans wrote:
>
> On Mon, Aug 18, 2014 at 9:00 AM, ngangsia akumbo <ngan...@gmail.com 
> > wrote: 
> > then if drupal , jomlam has what django has then why are u building app 
> with 
> > django, that requires much coding? 
> > 
>
> Drupal and Joomla are CMS applications. They allow you to build Drupal 
> and Joomla CMS apps. They are all very similar and do similar things. 
> If you want to do something that they cannot do, it is difficult 
> because everything you have to do must be done in the way that Drupal 
> or Joomla say you must do things. 
>
> So CMS applications allow you to easily build CMS applications, but 
> make it difficult to build non CMS applications. 
>
> Django is a library for doing things with web requests, including 
> generating HTML. It can do anything you want with web requests. It 
> does not become more difficult to utilise django when the project is 
> more complex. 
>
> When you hire someone who is good at building CMS applications, you 
> are hiring someone who will be very good at building a simple CMS, but 
> will struggle if you want to do something complex, bespoke or just 
> "not CMS-like". 
>
> When you hire someone who is good at building Django projects, you are 
> hiring someone who can build whatever it is you can think of. 
>
> If you are thinking about which skill set it is worth learning, the 
> same applies. Learning Django well will make you a more competent and 
> useful developer than learning how to operate a specific CMS platform. 
>
> On the other hand, many people make a good living by selling their CMS 
> skills to people who don't know better*. 
>
> Cheers 
>
> Tom 
>
> * If this seems derogatory, you should see the paragraph I deleted.. 
>

-- 
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/0ea59364-1b48-4753-b109-cfc3c0de779f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


hosting django app

2014-08-22 Thread ngangsia akumbo
my boss uses php to build web apps

he is n9ot very convince that django can be very cheap in hosting as php.

is there any way i can host a django app whic is as cheap as php?

-- 
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/30d329d4-04c6-46cb-bc9a-76844e15d90a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cms web buyilding

2014-08-18 Thread ngangsia akumbo
sorry my friend . 

On Monday, August 18, 2014 9:10:05 AM UTC+1, Lee wrote:
>
> Did you even read the replies you already received? I can't help but think 
> you are trolling this board and on that basis, this'll be the last time I 
> respond to any of your questions.

-- 
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/8ed22158-c9b0-4874-99cb-982787942a35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cms web buyilding

2014-08-18 Thread ngangsia akumbo
then if drupal , jomlam has what django has then why are u building app 
with django, that requires much coding?

On Saturday, August 16, 2014 10:01:02 PM UTC+1, Amirouche Boubekki wrote:
>
> Reading my answer on a desktop computer, doesn't inspire me much. So I 
> rewrite here... Sorry for the triple post...
>
>
> 2014-08-16 18:59 GMT+02:00 <amirouche...@gmail.com >:
>
>>
>>
>> À Sat Aug 16 2014 12:04:20 GMT+0200 (CEST), ngangsia akumbo a écrit :
>> > I was having an argument about learning how to code from scratch and 
>> using
>> > content management systems like joomla, dupal to build websites.
>>
>
> I sum up this as:
>
> > Learn a language by building something on top a CMS like joomla, drupal 
> or django cms, amstrong...
>
> - This is one way maybe one of the best way. It's among the few 
> recommendation I remember from university [1], it was basically was «get 
> pixels in the browser quickly». Doing TDD would be best. This is the idea 
> behind dynamic languages and their REPL.
>
> [1] another one is «WTF is NP & P. What matters are numbers!»
>
> - It is basically a copy/pasting code from cookbook and making them do the 
> right thing cf. https://djangosnippets.org/ that's how I build my first 
> enduser application (somekind of a social network) ten years ago in with 
> PHP and mysql, way before any kind of computer science curriculum or 
> webmaster course.
>
> - The good thing is that you have clear entry point to modify the behavior 
> of the vanilla application. Those entry points are higher level: «add an 
> item to the menu», «add item into the overview div»...  When you start from 
> scratch with only a framework you might stare blankly into an elite IDE 
> without much inspiration, because you can start from many places: views, 
> models, templates and how they interact make the number of possible 
> application manyfolds. Most of the time I start with models, then create 
> html mockup pages then glue them together with views.
>
> - You can get lost about what kind of application you can do, since you 
> can do much more with a framework with the same coding level.
>
> Only downside is that with a framework you start with a lot of code to 
> read «ark! there is an infinite recursion somewhere!», but this will help 
> later. I understand more quickly code than dozens of examples use of some 
> class.
>
> A ready made CMS, can also be used to do «gunshot coding» which basicly 
> boils down to turn working code to crap code and getting back a new code 
> that does something you want to do. Can also be understood as «copy & paste 
> then fix it»
>  
>
>> >
>> > This guy was telling they can make any web application using Joomla the 
>> the
>> > other cms out there.
>> > He does not need to learn coding.
>>
>
> Yes. Most of my early application that me and my friend were using were 
> just hacks of SPIP (ready made CMS for hacks) or wordpress, phpbb, 
> dotclear...
>  
>
>> > so if that was possible why do people still learn how to code from 
>> scratch?
>>
>
> Performance and *sustainability. *Depending on what you do, you might not 
> need to learn to code. How many stories I ear by friends and family of the 
> kevin next door getting dozen bucks a month for installing and configuring 
> one of the other of the 
>
> *ready made solutions. *
> Usually, python people are not interested by performance, but are glad to 
> have a perfect backend that can serve multiple devices with the same code. 
> Does phpbb allow to retrieve the list of incoming message in JSON 
> compatible with a ready made twitter client...
>
> Or a perfect *{{ name-the-application-of-the-kevin-next-door }}* user 
> experience which needs specific models, views and templates?
>
> Or a CMS with hand crafted backends (and frontends 
> <https://warehouse.python.org/project/pythonium/> ;) for every job in the 
> entreprise without taking too much time to answer 
> <http://www.exalead.fr/search/web/results/?q=python+CMS+date%3A2014;>?
>  
>
>> >
>> > So i need to get your opinion about this?
>> >
>>
>
> I don't know the state of the art in PHP, maybe they are framework that 
> have what Django (and other python framework) have:
>
> - python language
> - cookbook and books
> - several cms on top of it
> - plugin system with numerous plugins freely available 
>
> With the above you get almost all of what Drupal has, plus what I never 
> found in the documentation, its «internals» aka. the framework part of 
> drupal, which at the end of the day, is for people that want to get s

cms web buyilding

2014-08-16 Thread ngangsia akumbo
I was having an augment about learning how to code from scratch and using 
content management systems like joomla, dupal to build websites.

This guy was telling they can make any web application using Joomla the the 
other cms out there.
He does not need to learn coding.
so if that was possible why do people still learn how to code from scratch?

So i need to get your opinion about this?



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


Re: mixing python , php and django

2014-08-15 Thread ngangsia akumbo
what did he wanted you to build it with?

On Thursday, August 14, 2014 7:21:19 PM UTC+1, mike wrote:
>
> I recently met a business man in my community that was looking to hire 
> me to put together some school intranets.. long story short, I told 
> him no because he would not allow me to develop in Django/Python. I 
> don't need that in my life. :) 
>
> Mike 
>
> On Thu, Aug 14, 2014 at 12:28 PM, Nikolas Stevenson-Molnar 
> <nik.m...@consbio.org > wrote: 
> > Well, there's always: http://animuchan.net/django_php/ 
> > 
> > _Nik 
> > 
> > 
> > On 8/14/2014 1:24 AM, ngangsia akumbo wrote: 
> > 
> > I am working with a php guy in my office . 
> > He is asking me how can we mix php and django? 
> > Cos he want that when we have a project to do he should be able to 
> > paticipate using php in building the project 
> > 
> > can someone give me some tips 
> > 
> > -- 
> > 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/07bbe137-9497-495f-adfa-77d0e82d2b7e%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Django users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to django-users...@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/53ECE3B6.8020306%40consbio.org.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>

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


Re: mixing python , php and django

2014-08-14 Thread ngangsia akumbo
can i have a link on how that works?

On Thursday, August 14, 2014 9:38:15 AM UTC+1, Erik Cederstrand wrote:
>
> Den 14/08/2014 kl. 10.24 skrev ngangsia akumbo <ngan...@gmail.com 
> >: 
>
> > I am working with a php guy in my office . 
> > He is asking me how can we mix php and django? 
> > Cos he want that when we have a project to do he should be able to 
> paticipate using php in building the project 
> > 
> > can someone give me some tips 
>
> The most smooth approach I can think of is that you let PHP and Python 
> communicate via JSON APIs that you agree on. That, or tell him to 
> capitulate to the REAL Benevolent Dictator For Life. 
>
> Erik

-- 
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/66b6f369-5b80-4755-bb1a-79815d972a34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


mixing python , php and django

2014-08-14 Thread ngangsia akumbo
I am working with a php guy in my office .
He is asking me how can we mix php and django?
Cos he want that when we have a project to do he should be able to 
paticipate using php in building the project

can someone give me some tips

-- 
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/07bbe137-9497-495f-adfa-77d0e82d2b7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


school website

2014-08-12 Thread ngangsia akumbo
i have a website to build 

it will consist of 4 groups
students, staff, parents and courses

students will have the following
profile
update
delete
access courses
student will only access the course they registered in

staffs will be able to just update information

parents
will have profile, update, delete,  profile access information

course \
out line of all courses
only courses registered can be access bu that student

student should also be able to send messages to each other

i have never done this kid of project, i some guideline on how to go about 
with this 

thanks for sincere response

-- 
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/c6cbab86-aa6f-4f36-8efe-74b3838aaf79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


school website

2014-08-12 Thread ngangsia akumbo
PLease i have a small question. I just need some guidance

i have a school webiste to build in that site  there will be 4 groups
students, staff , guardiance , and course

students will have student profile

each student will be able to choose just a specific number of courses and 
also have access only to those course he or she choose.

student will create update and change profile with courses

staffs will be able to update information

Parents will be able to update and create profile and even delete their 
content

student will not be able to have acces to staff profile and parent profile 
as well

i need some advice on how i can go about with this using the favourite 
django

-- 
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/0a028bed-cb79-4af7-ab84-b1341c4cd8fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: admin error

2014-08-12 Thread ngangsia akumbo
http://bluepearlhotel.com/admin/


On Tuesday, August 12, 2014 2:26:21 PM UTC+1, ngangsia akumbo wrote:
>
> i am running my website on my local server apache on my machin when i type
>
> www.bluepearlhotel.com i get this error
>
> TemplateDoesNotExist at /admin/
>
> admin/login.html
>
> Request Method:GETRequest URL:http://bluepearlhotel.com/admin/Django 
> Version:1.4.3Exception Type:TemplateDoesNotExistException Value:
>
> admin/login.html
>
> Exception 
> Location:/usr/local/lib/python2.7/dist-packages/django/template/loader.py 
> in find_template, line 138Python Executable:/usr/bin/pythonPython Version:
> 2.7.6Python Path:
>
> ['/var/www/bluepearlhotel',
>  '/usr/lib/python2.7',
>  '/usr/lib/python2.7/plat-i386-linux-gnu',
>  '/usr/lib/python2.7/lib-tk',
>  '/usr/lib/python2.7/lib-old',
>  '/usr/lib/python2.7/lib-dynload',
>  '/usr/local/lib/python2.7/dist-packages',
>  '/usr/lib/python2.7/dist-packages',
>  '/usr/lib/python2.7/dist-packages/PILcompat',
>  '/usr/lib/python2.7/dist-packages/gst-0.10',
>  '/usr/lib/python2.7/dist-packages/gtk-2.0',
>  '/usr/lib/pymodules/python2.7',
>  '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
>
> Server time:Tue, 12 Aug 2014 14:21:11 +01
>

-- 
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/8ed69876-fc4e-4095-8bad-db5c3206e427%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


admin error

2014-08-12 Thread ngangsia akumbo
i am running my website on my local server apache on my machin when i type

www.bluepearlhotel.com i get this error

TemplateDoesNotExist at /admin/

admin/login.html

Request Method:GETRequest URL:http://bluepearlhotel.com/admin/Django 
Version:1.4.3Exception Type:TemplateDoesNotExistException Value:

admin/login.html

Exception 
Location:/usr/local/lib/python2.7/dist-packages/django/template/loader.py 
in find_template, line 138Python Executable:/usr/bin/pythonPython Version:
2.7.6Python Path:

['/var/www/bluepearlhotel',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-i386-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/python2.7/dist-packages/gst-0.10',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']

Server time:Tue, 12 Aug 2014 14:21:11 +01

-- 
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/987f8340-15e1-480f-87a8-9c3cb35775ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying djnago on apache

2014-08-12 Thread ngangsia akumbo
is the skype ok or facebook

ngangsia (at) yahoo.com

On Tuesday, August 12, 2014 10:38:32 AM UTC+1, ngangsia akumbo wrote:
>
> ok thanks bro i am not familia with google chat i have skyp 
>
> skype is ngangsi.richard
>
>
>
> On Tuesday, August 12, 2014 10:33:05 AM UTC+1, Sanjay Bhangar wrote:
>>
>> On Tue, Aug 12, 2014 at 2:41 PM, ngangsia akumbo <ngan...@gmail.com> 
>> wrote: 
>> > This is what i have for errors 
>> > 
>> > yems@yems /var/log/apache2 $ ls 
>> > 
>> > access.logerror.logother_vhosts_access.log 
>> > access.log.1  error.log.1  other_vhosts_access.log.1 
>> > 
>>
>> If you have not added a specific ErrorLog and CustomLog directive for 
>> this vhost file (as per my previous email), apache will club all 
>> access and error logs into the default access and error log files. 
>>
>> > 
>> > static path 
>> > 
>> > yems@yems /var/www/bluepearlhotel $ ls 
>> > 
>> > blog  bluepearlhotel  event  gallery  home  images  manage.py  media 
>>  static 
>> > 
>> > app listed are blog, event, gallery, home, images, a 
>> > 
>> > and the project name is bluepearlhotel 
>> > 
>>
>> You seemed to have your paths in your vhost conf as like 
>> "/home/yems/var/ww/..." whereas your path seems to be /var/www/.. 
>> (without the /home/yems .. ) 
>>
>> > 
>> > i have also done the a2ensite bluepearlhotel.conf  it gave me this 
>> message 
>> > 
>> > yems@yems /etc/apache2/sites-available $ a2ensite bluepearlhotel.conf 
>> > 
>> > Site bluepearlhotel already enabled 
>> > 
>> > the out pu of  /etc/apache2/sites-available 
>> > 
>> > 
>> > yems@yems /etc/apache2/sites-available $ ls 
>> > 
>> > 000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com 
>> > 
>> > 
>> > 
>> > config files are not being read 
>> > 
>>
>> There seem to be several little silly things that could be the issue 
>> here - its a bit hard to tell from out here - if you feel like, ping 
>> me on chat (sanjayb on IRC/Freenode or my current email address on 
>> google-chat) -- we can go over these things step by step and make sure 
>> things are in order. 
>>
>> Cheers, 
>> Sanjay 
>>
>>
>> > 
>> > There are no erros at the bluepearlhotel 
>> > 
>> > 
>> > On Monday, August 11, 2014 4:52:11 PM UTC+1, Sanjay Bhangar wrote: 
>> >> 
>> >> hey Ngangsia, 
>> >> 
>> >> 
>> >> On Mon, Aug 11, 2014 at 7:17 PM, ngangsia akumbo <ngan...@gmail.com> 
>> >> wrote: 
>> >> > i have these configs 
>> >> > 
>> >> > project path 
>> >> > yems bluepearlhotel # ls 
>> >> > blog  bluepearlhotel  event  gallery  home  images  manage.py  media 
>> >> > static 
>> >> > yems bluepearlhotel # 
>> >> > 
>> >> > 
>> >> > cd /etc/apcahe2/sites-available 
>> >> > 
>> >> >  yems sites-available # ls 
>> >> > 000-default.conf  bluepearlhotel.conf  default-ssl.conf  
>> testsite.com 
>> >> > yems sites-available # 
>> >> > 
>> >> 
>> >> The config you are using here is testsite.com or bluepearlhotel.conf 
>> ? 
>> >> Recently, apache changed their default config to only look for files 
>> >> ending in .conf inside sites-available, iirc, so if your config is in 
>> >> testsite.com, maybe its not reading your config at all. 
>> >> 
>> >> > 
>> >> > VirtualHost *:80> 
>> >> > WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi 
>> >> > 
>> >> > ServerName  bluepearlhotel.com 
>> >> > 
>> >> > Alias /static /var/www/bluepearlhotel/static/ 
>> >> > 
>> >> >  
>> >> > Order allow,deny 
>> >> > Allow from all 
>> >> >  
>> >> > 
>> >> >  
>> >> >  
>> >> > 
>> >> > Require all granted 
>> >> >  
>> >> >  
>> >> > 
>> >> 
>> >> That *looks* okay. Can you add a couple lines for log files, and then 
>> >> check those files to see if you get anything in the logs that maybe 
>> >> helpful

Re: deploying djnago on apache

2014-08-12 Thread ngangsia akumbo
ok thanks bro i am not familia with google chat i have skyp 

skype is ngangsi.richard



On Tuesday, August 12, 2014 10:33:05 AM UTC+1, Sanjay Bhangar wrote:
>
> On Tue, Aug 12, 2014 at 2:41 PM, ngangsia akumbo <ngan...@gmail.com 
> > wrote: 
> > This is what i have for errors 
> > 
> > yems@yems /var/log/apache2 $ ls 
> > 
> > access.logerror.logother_vhosts_access.log 
> > access.log.1  error.log.1  other_vhosts_access.log.1 
> > 
>
> If you have not added a specific ErrorLog and CustomLog directive for 
> this vhost file (as per my previous email), apache will club all 
> access and error logs into the default access and error log files. 
>
> > 
> > static path 
> > 
> > yems@yems /var/www/bluepearlhotel $ ls 
> > 
> > blog  bluepearlhotel  event  gallery  home  images  manage.py  media 
>  static 
> > 
> > app listed are blog, event, gallery, home, images, a 
> > 
> > and the project name is bluepearlhotel 
> > 
>
> You seemed to have your paths in your vhost conf as like 
> "/home/yems/var/ww/..." whereas your path seems to be /var/www/.. 
> (without the /home/yems .. ) 
>
> > 
> > i have also done the a2ensite bluepearlhotel.conf  it gave me this 
> message 
> > 
> > yems@yems /etc/apache2/sites-available $ a2ensite bluepearlhotel.conf 
> > 
> > Site bluepearlhotel already enabled 
> > 
> > the out pu of  /etc/apache2/sites-available 
> > 
> > 
> > yems@yems /etc/apache2/sites-available $ ls 
> > 
> > 000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com 
> > 
> > 
> > 
> > config files are not being read 
> > 
>
> There seem to be several little silly things that could be the issue 
> here - its a bit hard to tell from out here - if you feel like, ping 
> me on chat (sanjayb on IRC/Freenode or my current email address on 
> google-chat) -- we can go over these things step by step and make sure 
> things are in order. 
>
> Cheers, 
> Sanjay 
>
>
> > 
> > There are no erros at the bluepearlhotel 
> > 
> > 
> > On Monday, August 11, 2014 4:52:11 PM UTC+1, Sanjay Bhangar wrote: 
> >> 
> >> hey Ngangsia, 
> >> 
> >> 
> >> On Mon, Aug 11, 2014 at 7:17 PM, ngangsia akumbo <ngan...@gmail.com> 
> >> wrote: 
> >> > i have these configs 
> >> > 
> >> > project path 
> >> > yems bluepearlhotel # ls 
> >> > blog  bluepearlhotel  event  gallery  home  images  manage.py  media 
> >> > static 
> >> > yems bluepearlhotel # 
> >> > 
> >> > 
> >> > cd /etc/apcahe2/sites-available 
> >> > 
> >> >  yems sites-available # ls 
> >> > 000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com 
> >> > yems sites-available # 
> >> > 
> >> 
> >> The config you are using here is testsite.com or bluepearlhotel.conf ? 
> >> Recently, apache changed their default config to only look for files 
> >> ending in .conf inside sites-available, iirc, so if your config is in 
> >> testsite.com, maybe its not reading your config at all. 
> >> 
> >> > 
> >> > VirtualHost *:80> 
> >> > WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi 
> >> > 
> >> > ServerName  bluepearlhotel.com 
> >> > 
> >> > Alias /static /var/www/bluepearlhotel/static/ 
> >> > 
> >> >  
> >> > Order allow,deny 
> >> > Allow from all 
> >> >  
> >> > 
> >> >  
> >> >  
> >> > 
> >> > Require all granted 
> >> >  
> >> >  
> >> > 
> >> 
> >> That *looks* okay. Can you add a couple lines for log files, and then 
> >> check those files to see if you get anything in the logs that maybe 
> >> helpful? Like this: 
> >> 
> >>   ErrorLog /var/log/apache2/bluepearlhotel.com_error.log 
> >>   CustomLog /var/log/apache2/bluepearlhotel.com_access.log combined 
> >> 
> >> Also, your /static alias seems off? Where exactly are your project 
> >> files? If your project folder is /home/yems/var/www/bluepearlhotel 
> >> your static path should probably be something like 
> >> /home/yems/var/www/bluepearlhotel/static or so? 
> >> 
> >> Can you paste output of the command 'pwd' inside your project folder? 
> >> 
> >> > 
> >> > 
>

Re: Django 1.7: ImportError: No module named .models

2014-08-12 Thread ngangsia akumbo
i have had this same erroe too but it happed that i include instead the 
module class name in the settings.py file

make sure u are having the name of the app in the settings.py file

-- 
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/4cae3225-4abd-4ffc-b518-8ad9d2c2c57b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying djnago on apache

2014-08-12 Thread ngangsia akumbo
This is what i have for errors

   - yems@yems /var/log/apache2 $ ls
   
access.logerror.logother_vhosts_access.log
access.log.1  error.log.1  other_vhosts_access.log.1


static path


   - yems@yems /var/www/bluepearlhotel $ ls
   
blog  bluepearlhotel  event  gallery  home  images  manage.py  media  static

app listed are blog, event, gallery, home, images, a

and the project name is bluepearlhotel


i have also done the a2ensite bluepearlhotel.conf  it gave me this message


   - yems@yems /etc/apache2/sites-available $ a2ensite bluepearlhotel.conf
   
Site bluepearlhotel already enabled

the out pu of  /etc/apache2/sites-available



   - yems@yems /etc/apache2/sites-available $ ls
   
000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com



config files are not being read


There are no erros at the bluepearlhotel 


On Monday, August 11, 2014 4:52:11 PM UTC+1, Sanjay Bhangar wrote:
>
> hey Ngangsia, 
>
>
> On Mon, Aug 11, 2014 at 7:17 PM, ngangsia akumbo <ngan...@gmail.com 
> > wrote: 
> > i have these configs 
> > 
> > project path 
> > yems bluepearlhotel # ls 
> > blog  bluepearlhotel  event  gallery  home  images  manage.py  media 
>  static 
> > yems bluepearlhotel # 
> > 
> > 
> > cd /etc/apcahe2/sites-available 
> > 
> >  yems sites-available # ls 
> > 000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com 
> > yems sites-available # 
> > 
>
> The config you are using here is testsite.com or bluepearlhotel.conf ? 
> Recently, apache changed their default config to only look for files 
> ending in .conf inside sites-available, iirc, so if your config is in 
> testsite.com, maybe its not reading your config at all. 
>
> > 
> > VirtualHost *:80> 
> > WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi 
> > 
> > ServerName  bluepearlhotel.com 
> > 
> > Alias /static /var/www/bluepearlhotel/static/ 
> > 
> >  
> > Order allow,deny 
> > Allow from all 
> >  
> > 
> >  
> >  
> > 
> > Require all granted 
> >  
> >  
> > 
>
> That *looks* okay. Can you add a couple lines for log files, and then 
> check those files to see if you get anything in the logs that maybe 
> helpful? Like this: 
>
>   ErrorLog /var/log/apache2/bluepearlhotel.com_error.log 
>   CustomLog /var/log/apache2/bluepearlhotel.com_access.log combined 
>
> Also, your /static alias seems off? Where exactly are your project 
> files? If your project folder is /home/yems/var/www/bluepearlhotel 
> your static path should probably be something like 
> /home/yems/var/www/bluepearlhotel/static or so? 
>
> Can you paste output of the command 'pwd' inside your project folder? 
>
> > 
> > 
> > yems@yems ~ $ ls 
> > bluepearlhotel.wsgi 
> > 
> > import os 
> > import sys 
> > sys.path = ['home/home/var/www/bluepearlhotel'] + sys.path 
> > os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings' 
> > import django.core.handlers.wsgi 
> > 
> > application = django.core.handlers.wsgi.WSGIHandler() 
> > 
> > when i browse 
> > 
> > www.bluepearlhotel.com 
> > it give me an empty page 
> > 
> > Please need help 
> > 
>
> Again, that *seems* okay, but perhaps you have something weird going 
> on with your paths. 
>
> I'd check the apache log files, one of two things could happen then: 
>
> 1> You don't see any errors for bluepearlhotel.com -- in this case, 
> your apache conf is probably not being read at all. Have you done 
> a2enmod on the vhost file? Can you check if there is an entry / 
> symlink inside /etc/apache2/sites-enabled/ (post output of 'ls 
> /etc/apache2/sites-enabled'). Then, first need to figure out why the 
> conf files is not being read. 
>
> 2> If the conf file is being read, you should see some errors. Those 
> errors should give you some more information about what's going wrong. 
> Paste those errors here and we can try and help you out. 
>
> Don't give up, lets figure this out :P 
>
> -Sanjay 
>

-- 
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/90e65b15-a61b-4318-a82f-2aa0f866e371%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying djnago on apache

2014-08-11 Thread ngangsia akumbo
some help here please

On Monday, August 11, 2014 2:47:09 PM UTC+1, ngangsia akumbo wrote:
>
> i have these configs
>
> project path
> yems bluepearlhotel # ls
> blog  bluepearlhotel  event  gallery  home  images  manage.py  media 
>  static
> yems bluepearlhotel # 
>
>
> cd /etc/apcahe2/sites-available
>
> * yems sites-available # ls*
> *000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com 
> <http://testsite.com>*
> *yems sites-available # *
>
>
> VirtualHost *:80>
> WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi
>
> ServerName  bluepearlhotel.com
>
> Alias /static /var/www/bluepearlhotel/static/
>
> 
> Order allow,deny
> Allow from all
> 
>
> 
> 
>
> Require all granted
> 
> 
>
>
>
> yems@yems ~ $ ls
> bluepearlhotel.wsgi 
>
> *import os*
> *import sys*
> *sys.path = ['home/home/var/www/bluepearlhotel'] + sys.path*
> *os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings'*
> *import django.core.handlers.wsgi*
>
> *application = django.core.handlers.wsgi.WSGIHandler()*
>
> when i browse 
>
> www.bluepearlhotel.com 
> it give me an empty page
>
> Please need 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/91f3fec2-ad4b-422b-b560-c223fcd8a4a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying djnago on apache

2014-08-11 Thread ngangsia akumbo
i have these configs

project path
yems bluepearlhotel # ls
blog  bluepearlhotel  event  gallery  home  images  manage.py  media  static
yems bluepearlhotel # 


cd /etc/apcahe2/sites-available

* yems sites-available # ls*
*000-default.conf  bluepearlhotel.conf  default-ssl.conf  testsite.com*
*yems sites-available # *


VirtualHost *:80>
WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi

ServerName  bluepearlhotel.com

Alias /static /var/www/bluepearlhotel/static/


Order allow,deny
Allow from all





Require all granted





yems@yems ~ $ ls
bluepearlhotel.wsgi 

*import os*
*import sys*
*sys.path = ['home/home/var/www/bluepearlhotel'] + sys.path*
*os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings'*
*import django.core.handlers.wsgi*

*application = django.core.handlers.wsgi.WSGIHandler()*

when i browse 

www.bluepearlhotel.com 
it give me an empty page

Please need help



On Monday, August 11, 2014 8:41:40 AM UTC+1, ngangsia akumbo wrote:
>
> thanks bro
>
> On Saturday, August 9, 2014 3:59:15 PM UTC+1, tea...@gmail.com wrote:
>>
>> Hello!
>>
>> Maybe this "how to" help you!
>>
>> http://teago.futuria.com.br/tip/instalando-modulo-wsgi-no-apache-2-com-django-14/
>>
>> Tiago
>>
>> On Thursday, August 7, 2014 3:01:47 PM UTC-3, ngangsia akumbo wrote:
>>>
>>> nano bluepearlhotel.wsgi
>>>
>>>
>>> import os
>>> import sys
>>> sys.path = ['/var/www/bluepearlhotel'] + sys.path
>>> os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings'
>>> import django.core.handlers.wsgi
>>>
>>> application = django.core.handlers.wsgi.WSGIHandler()
>>>
>>>
>>>
>>>
>>> yems@yems /etc/apache2/sites-available $ 
>>>
>>>
>>>
>>> 
>>> WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi
>>>
>>> ServerName  bluepearlhotel.com
>>>
>>> Alias /static /var/www/bluepearlhotel/static/
>>>
>>> 
>>> Order allow,deny
>>> Allow from all
>>> 
>>> 
>>>
>>> i created the project 
>>>
>>>
>>> so when i type bluepearlhotel.com
>>>
>>> it gives me this error
>>>
>>> Forbidden
>>>
>>> You don't have permission to access / on this server.
>>> Apache/2.4.7 (Ubuntu) Server at bluepearlhotel.com Port 80
>>>
>>>
>>>
>>>
>>>
>>>

-- 
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/ece879da-997d-41e9-be09-f52523bd9af7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying djnago on apache

2014-08-11 Thread ngangsia akumbo
thanks bro

On Saturday, August 9, 2014 3:59:15 PM UTC+1, tea...@gmail.com wrote:
>
> Hello!
>
> Maybe this "how to" help you!
>
> http://teago.futuria.com.br/tip/instalando-modulo-wsgi-no-apache-2-com-django-14/
>
> Tiago
>
> On Thursday, August 7, 2014 3:01:47 PM UTC-3, ngangsia akumbo wrote:
>>
>> nano bluepearlhotel.wsgi
>>
>>
>> import os
>> import sys
>> sys.path = ['/var/www/bluepearlhotel'] + sys.path
>> os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings'
>> import django.core.handlers.wsgi
>>
>> application = django.core.handlers.wsgi.WSGIHandler()
>>
>>
>>
>>
>> yems@yems /etc/apache2/sites-available $ 
>>
>>
>>
>> 
>> WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi
>>
>> ServerName  bluepearlhotel.com
>>
>> Alias /static /var/www/bluepearlhotel/static/
>>
>> 
>> Order allow,deny
>> Allow from all
>> 
>> 
>>
>> i created the project 
>>
>>
>> so when i type bluepearlhotel.com
>>
>> it gives me this error
>>
>> Forbidden
>>
>> You don't have permission to access / on this server.
>> Apache/2.4.7 (Ubuntu) Server at bluepearlhotel.com Port 80
>>
>>
>>
>>
>>
>>

-- 
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/f15e5008-f7d2-44f4-8d23-02fb0927778f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: 3 weeks of images proproblems

2014-08-11 Thread ngangsia akumbo

Thank you bro i figured it out this week end

just left with the apache problem 
i have don all the configuration but when i open my page it takes me back 
to the apache default page

skype: ngangsi.richard

On Saturday, August 9, 2014 5:23:03 PM UTC+1, Collin Anderson wrote:
>
> templates
>>
>>1.  
>>
>> should be : 
> 
>  
>
>> settings.py
>>
>>
>>1. MEDIA_ROOT = '/home/yems/var/www/bluepearlhotel/media/'
>>2. MEDIA_URL = 'http://www.127.0.0.1:8000/media/'
>>
>> You may have better luck with this simpler MEDIA_URL:
> MEDIA_ROOT = '/home/yems/var/www/bluepearlhotel/media/'
> MEDIA_URL = '/media/'
>
>
>> models.py
>>
>>
>>- image = models.ImageField(upload_to='images/', blank=True)
>>
>> That's perfect. What does the rest of your model look like? How is it 
> connected to your Post model?
>  
>
>>
>> views .py
>>
>> def detail_post(request, blogs_id):
>> try:
>> blogs = Post.objects.get(pk=blogs_id)
>> except Post.DoesNotExist:
>> raise 404
>> return render_to_response('detailp.html', {'blogs': blogs})
>
>
> Looks ok to me, but how does your image get into the template?
>
>>
>> urls 
>> from django.conf.urls import patterns, include, url
>>
>> from django.contrib import admin
>> admin.autodiscover()
>>
>> urlpatterns = patterns('',
>> #new urls
>> url(r'^blog/$', 'blog.views.list_post'),
>> url(r'^blog/(?P\d+)/$', 'blog.views.detail_post'),
>>  #events urls
>> url(r'^event/$', "event.views.list_event"),
>> url(r'^event/(?P\d+)/$', "event.views.detail_event"),
>>
>> #image urls
>> url(r'^gallery/$', "gallery.views.list_gallery"),
>> url(r'^gallery/(?P\d+)/$', 
>> "gallery.views.detail_gallery"),
>> 
>> #url(r'^gallery/(?P\d+)/album/$',"gallery.views.detail_album"),
>>
>>  #HOME URL
>> url(r'^home/$', "home.views.list_home"),
>> url(r'^home/(?P\d+)/$', "home.views.detail_home"),
>>
>>
>>
>> url(r'^admin/', include(admin.site.urls)),
>>
>> )
>
> add a static() line for you MEDIA_ROOT at the very bottom:
>
> from django.conf import settings
> from django.conf.urls.static import static
>
> urlpatterns = patterns('',
> # ... the rest of your URLconf goes here ...
> ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
>
>
>
> https://docs.djangoproject.com/en/1.7/howto/static-files/#serving-files-uploaded-by-a-user-during-development
>  
>

-- 
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/aeb926d6-fc20-44c8-bb9c-04e32e8680d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


3 weeks of images proproblems

2014-08-09 Thread ngangsia akumbo
I have been having problem uploading image from admin and for it to deplay 
on the page

Here is my config

   
templates

   1.  


settings.py


   1. MEDIA_ROOT = '/home/yems/var/www/bluepearlhotel/media/'
   2. MEDIA_URL = 'http://www.127.0.0.1:8000/media/'


models.py


   - image = models.ImageField(upload_to='images/', blank=True)


views .py

def detail_post(request, blogs_id):
try:
blogs = Post.objects.get(pk=blogs_id)
except Post.DoesNotExist:
raise 404
return render_to_response('detailp.html', {'blogs': blogs})


urls 
from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
#new urls
url(r'^blog/$', 'blog.views.list_post'),
url(r'^blog/(?P\d+)/$', 'blog.views.detail_post'),
 #events urls
url(r'^event/$', "event.views.list_event"),
url(r'^event/(?P\d+)/$', "event.views.detail_event"),

#image urls
url(r'^gallery/$', "gallery.views.list_gallery"),
url(r'^gallery/(?P\d+)/$', "gallery.views.detail_gallery"),

#url(r'^gallery/(?P\d+)/album/$',"gallery.views.detail_album"),

 #HOME URL
url(r'^home/$', "home.views.list_home"),
url(r'^home/(?P\d+)/$', "home.views.detail_home"),



url(r'^admin/', include(admin.site.urls)),

)

When i upload an image it actually upload to the right position, but when i 
open the page i shows image break

when i do inspeck element i see this


   1. 

Please i need 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c9aee775-fbe8-4078-9265-1658edeaae32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying django

2014-08-09 Thread ngangsia akumbo

i have two probe so far uploading images and hosting on apache

those are the probes i face now, my images dont show up on the templates 
i am suing django 1.4
On Friday, August 8, 2014 4:29:45 PM UTC+1, ngangsia akumbo wrote:
>
> is there an easier way to host your django website for testing
>
> i am really getting frustrated, is flask more easier than django?
>
> i really want to use django but am getting frustrated
>

-- 
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/8016b1eb-7889-43e3-ab09-04f0afb05cf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Starting with Python 3 and Django 1.x?

2014-08-09 Thread ngangsia akumbo
stick to python 2.7

collins anderson can i meet u on skype? mine is 

skype:  ngangsi.richard



On Friday, August 8, 2014 11:53:30 PM UTC+1, Collin Anderson wrote:
>
> I'd start with 1.7 as it should be more friendly to newcomers. There will 
> be another release candidate soon and the final version should be out in 
> about a month.
>

-- 
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/d2864620-4d13-4d41-9d6d-cad5b31dc589%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


uploading images

2014-08-09 Thread ngangsia akumbo
can some one refee to me a good guide that can properly explain a step by 
step guide on how to upload images in module and view them on the template.

The django documentation does not explicitly explain that section well

i am using django 1.4 

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


deploying django

2014-08-08 Thread ngangsia akumbo
is there an easier way to host your django website for testing

i am really getting frustrated, is flask more easier than django?

i really want to use django but am getting frustrated

-- 
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/2e4d15b3-0597-4b83-b93f-7062bcd5f090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying djnago on apache

2014-08-08 Thread ngangsia akumbo

[Fri Aug 08 14:49:13.738547 2014] [:error] [pid 4517:tid 2998897472] 
[client 19$
[Fri Aug 08 14:49:13.738584 2014] [:error] [pid 4517:tid 2998897472] 
[client 19$
[Fri Aug 08 14:49:13.738619 2014] [:error] [pid 4517:tid 2998897472] 
[client 19$


some example of error_log

On Friday, August 8, 2014 2:40:33 PM UTC+1, ngangsia akumbo wrote:
>
> Thanks bro am drawing closer to the solution
> i got this error when i types
>  www.bluepearlhotel.com
>
> Internal Server Error 
>
> The server encountered an internal error or misconfiguration and was 
> unable to complete your request.
>
> Please contact the server administrator at [no address given] to inform 
> them of the time this error occurred, and the actions you performed just 
> before this error.
>
> More information about this error may be available in the server error log.
>
>
> i have 4 apps withing the project bluepearlhotel 
> <http://www.google.com/url?q=http%3A%2F%2Fbluepearlhotel.com%2F=D=1=AFQjCNFmN49IYIOe4SijbTK_ZwCOSo-4oA>
>  
>
>
> On Friday, August 8, 2014 1:43:58 PM UTC+1, Collin Anderson wrote:
>>
>> 
>> WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi
>>
>> ServerName  bluepearlhotel.com 
>> <http://www.google.com/url?q=http%3A%2F%2Fbluepearlhotel.com%2F=D=1=AFQjCNFmN49IYIOe4SijbTK_ZwCOSo-4oA>
>>
>> Alias /static /var/www/bluepearlhotel/static/
>>
>> 
>> Order allow,deny
>> Allow from all
>> 
>>
>> 
>> 
>> Require all granted
>> 
>> 
>>
>> 
>>
>

-- 
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/d8ac18dc-4a17-4da5-8a67-457549f0f1c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying djnago on apache

2014-08-08 Thread ngangsia akumbo
Thanks bro am drawing closer to the solution
i got this error when i types
 www.bluepearlhotel.com

Internal Server Error 

The server encountered an internal error or misconfiguration and was unable 
to complete your request.

Please contact the server administrator at [no address given] to inform 
them of the time this error occurred, and the actions you performed just 
before this error.

More information about this error may be available in the server error log.


i have 4 apps withing the project bluepearlhotel 

 


On Friday, August 8, 2014 1:43:58 PM UTC+1, Collin Anderson wrote:
>
> 
> WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi
>
> ServerName  bluepearlhotel.com 
> 
>
> Alias /static /var/www/bluepearlhotel/static/
>
> 
> Order allow,deny
> Allow from all
> 
>
> 
> 
> Require all granted
> 
> 
>
> 
>

-- 
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/140db4f8-d12d-4761-bcdc-d3f5ce0ac90f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


python manage.py syncdb

2014-08-08 Thread ngangsia akumbo
when i try to suncdb db i get this error below

You just installed Django's auth system, which means you don't have any 
superusers defined.
Would you like to create one now? (yes/no): yes
Traceback (most recent call last):
  File "manage.py", line 10, in 
execute_from_command_line(sys.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 443, in execute_from_command_line
utility.execute()
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 196, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 232, in execute
output = self.handle(*args, **options)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 371, in handle
return self.handle_noargs(**options)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py",
 
line 110, in handle_noargs
emit_post_sync_signal(created_models, verbosity, interactive, db)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/sql.py", 
line 189, in emit_post_sync_signal
interactive=interactive, db=db)
  File 
"/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", 
line 172, in send
response = receiver(signal=self, sender=sender, **named)
  File 
"/usr/local/lib/python2.7/dist-packages/django/contrib/auth/management/__init__.py",
 
line 73, in create_superuser
call_command("createsuperuser", interactive=True, database=db)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", 
line 150, in call_command
return klass.execute(*args, **defaults)
  File 
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", 
line 232, in execute
output = self.handle(*args, **options)
  File 
"/usr/local/lib/python2.7/dist-packages/django/contrib/auth/management/commands/createsuperuser.py",
 
line 70, in handle
default_username = get_default_username()
  File 
"/usr/local/lib/python2.7/dist-packages/django/contrib/auth/management/__init__.py",
 
line 105, in get_default_username
default_username = get_system_username()
  File 
"/usr/local/lib/python2.7/dist-packages/django/contrib/auth/management/__init__.py",
 
line 85, in get_system_username
return getpass.getuser().decode(locale.getdefaultlocale()[1])
  File "/usr/lib/python2.7/locale.py", line 543, in getdefaultlocale
return _parse_localename(localename)
  File "/usr/lib/python2.7/locale.py", line 475, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: en_NG

-- 
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/39d60904-5ee0-4589-85c4-92e1a2ba6fd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying djnago on apache

2014-08-08 Thread ngangsia akumbo
i got this errore

yems@yems /etc/apache2/sites-available $ sudo  /etc/init.d/apache2 restart
 * Restarting web server apache2 
[fail] 
 * The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax 
error on line 18 of /etc/apache2/sites-enabled/bluepearlhotel.conf: 
Expected  but saw 
Action 'configtest' failed.
The Apache error log may have more information.




 after adding 

 not py




On Friday, August 8, 2014 9:39:23 AM UTC+1, ngangsia akumbo wrote:
>
> apache failed to restart after changing to
>  not py
>
> On Friday, August 8, 2014 9:36:04 AM UTC+1, ngangsia akumbo wrote:
>>
>> Thanks bro for the help you are giving me
>>
>> but after adding that i realease a strange behavior this morning
>>
>> my database name is bluepearlhotel on mysql
>> mi website domain name i set for apache is bluepearlhotel 
>> when i open the bluepearlhotel  site name it toke me to the mysql 
>> pphpmyadmin , listing all the files we have in the databse of the main 
>> server.
>>
>> since we have a home group share 
>> how do i open the site bluepearlhotel  ?
>> i am confused with this kind of behavior
>>
>> On Thursday, August 7, 2014 7:46:43 PM UTC+1, Collin Anderson wrote:
>>>
>>> sorry, my bad, should be:
>>>  not py
>>>  
>>

-- 
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/ac69ba62-954a-4b7a-997e-c1c46e79e9ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying djnago on apache

2014-08-08 Thread ngangsia akumbo
apache failed to restart after changing to
 not py

On Friday, August 8, 2014 9:36:04 AM UTC+1, ngangsia akumbo wrote:
>
> Thanks bro for the help you are giving me
>
> but after adding that i realease a strange behavior this morning
>
> my database name is bluepearlhotel on mysql
> mi website domain name i set for apache is bluepearlhotel 
> when i open the bluepearlhotel  site name it toke me to the mysql 
> pphpmyadmin , listing all the files we have in the databse of the main 
> server.
>
> since we have a home group share 
> how do i open the site bluepearlhotel  ?
> i am confused with this kind of behavior
>
> On Thursday, August 7, 2014 7:46:43 PM UTC+1, Collin Anderson wrote:
>>
>> sorry, my bad, should be:
>>  not py
>>  
>

-- 
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/4e14f686-8869-499f-ba65-825c7087c3a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying djnago on apache

2014-08-08 Thread ngangsia akumbo
Thanks bro for the help you are giving me

but after adding that i realease a strange behavior this morning

my database name is bluepearlhotel on mysql
mi website domain name i set for apache is bluepearlhotel 
when i open the bluepearlhotel  site name it toke me to the mysql 
pphpmyadmin , listing all the files we have in the databse of the main 
server.

since we have a home group share 
how do i open the site bluepearlhotel  ?
i am confused with this kind of behavior

On Thursday, August 7, 2014 7:46:43 PM UTC+1, Collin Anderson wrote:
>
> sorry, my bad, should be:
>  not py
>  

-- 
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/a1b2b122-d2d8-4c79-bcdc-c699fc94df4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying djnago on apache

2014-08-07 Thread ngangsia akumbo
ahouls i add it like this

  GNU nano 2.2.6   File: 
bluepearlhotel.conf


WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi

ServerName  bluepearlhotel.com

Alias /static /var/www/bluepearlhotel/static/


Order allow,deny
Allow from all





Require all granted






On Thursday, August 7, 2014 7:14:46 PM UTC+1, Collin Anderson wrote:
>
> add:
>
> 
> 
> Require all granted
> 
> 
>
>

-- 
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/05bd51fe-c778-455f-88e9-3a66d5920790%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


deploying djnago on apache

2014-08-07 Thread ngangsia akumbo
nano bluepearlhotel.wsgi


import os
import sys
sys.path = ['/var/www/bluepearlhotel'] + sys.path
os.environ['DJANGO_SETTINGS_MODULE'] = 'bluepearlhotel.settings'
import django.core.handlers.wsgi

application = django.core.handlers.wsgi.WSGIHandler()




yems@yems /etc/apache2/sites-available $ 




WSGIScriptAlias / /home/yems/bluepearlhotel.wsgi

ServerName  bluepearlhotel.com

Alias /static /var/www/bluepearlhotel/static/


Order allow,deny
Allow from all



i created the project 


so when i type bluepearlhotel.com

it gives me this error

Forbidden

You don't have permission to access / on this server.
Apache/2.4.7 (Ubuntu) Server at bluepearlhotel.com Port 80





-- 
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/93622b41-afdf-4ee1-8265-12290fbc2e83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


seeting ur django site doamin name

2014-08-06 Thread ngangsia akumbo
I AM CURRENTLY DEPLOYING DJANGO WITH APACHE

I WISH TO SET THE MAIN DOMAIN NAME

I HAVE THE FOLLOWING URLS

from django.conf.urls import patterns, include, url

 

 

from django.contrib import admin

admin.autodiscover()

 

urlpatterns = patterns('',

#new urls

url(r'^blog/$', 'blog.views.list_post'),

url(r'^blog/(?P\d+)/$', 'blog.views.detail_post'),

 

#events urls

url(r'^event/$', "event.views.list_event"),

url(r'^event/(?P\d+)/$', "event.views.detail_event"),

 

#image urls

url(r'^gallery/$', "gallery.views.list_gallery"),

url(r'^gallery/(?P\d+)/$', "gallery.views.detail_gallery"),

#url(r'^gallery/(?P\d+)/album/$', 
"gallery.views.detail_album"),

 

 

#HOME URL

url(r'^home/$', "home.views.list_home"),   

url(r'^home/(?P\d+)/$', "home.views.detail_home"),

 

#pages

#('^pages/', include('django.contrib.flatpages.urls')),

url(r'^admin/', include(admin.site.urls)),

)


HOW DO I SET THE DOMAIN NAME LET SAY THE DOMAIN NAME IS 


www.bamenda.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/b3b85e8e-bfbf-433f-be34-1d426181d0b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: guinicorn

2014-08-06 Thread ngangsia akumbo
(testproject)yems@localhost ~/Documents/testproject $ gunicorn_django 
--bind localhost:8000
!!!
!!! WARNING: This command is deprecated.
!!! 
!!! You should now run your application with the WSGI interface
!!! installed with your project. Ex.:
!!! 
!!! gunicorn myproject.wsgi:application
!!! 
!!! See 
https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/gunicorn/
!!! for more info.
!!!

Traceback (most recent call last):
  File "/usr/local/bin/gunicorn_django", line 11, in 
sys.exit(run())
  File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/djangoapp.py", 
line 160, in run
DjangoApplication("%(prog)s [OPTIONS] [SETTINGS_PATH]").run()
  File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 
185, in run
super(Application, self).run()
  File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 
71, in run
Arbiter(self).run()
  File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 
169, in run
self.manage_workers()
  File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 
477, in manage_workers
self.spawn_workers()
  File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 
542, in spawn_workers
time.sleep(0.1 * random.random())
  File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 
209, in handle_chld
self.reap_workers()
  File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 
459, in reap_workers
raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: 


On Wednesday, August 6, 2014 3:25:00 PM UTC+1, ngangsia akumbo wrote:
>
> i am trying to host my site with gunicorn i get this error
>
> !!!
> !!! WARNING: This command is deprecated.
> !!! 
> !!! You should now run your application with the WSGI interface
> !!! installed with your project. Ex.:
> !!! 
> !!! gunicorn myproject.wsgi:application
> !!! 
> !!! See 
> https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/gunicorn/
> !!! for more info.
> !!!
>
>
> when i run this commane within my env
>
>
> (testproject)yems@localhost ~/Documents/testproject $ gunicorn_django 
> --bind localhost:8001\
>
>

-- 
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/6fa67f83-f007-47f4-b855-ce0a0289b6e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


guinicorn

2014-08-06 Thread ngangsia akumbo
i am trying to host my site with gunicorn i get this error

!!!
!!! WARNING: This command is deprecated.
!!! 
!!! You should now run your application with the WSGI interface
!!! installed with your project. Ex.:
!!! 
!!! gunicorn myproject.wsgi:application
!!! 
!!! See 
https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/gunicorn/
!!! for more info.
!!!


when i run this commane within my env


(testproject)yems@localhost ~/Documents/testproject $ gunicorn_django 
--bind localhost:8001\

-- 
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/0dc233cb-85ed-46f8-8215-30390523bec3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying django

2014-08-06 Thread ngangsia akumbo
Thanks bro will chceck if it works

On Wednesday, August 6, 2014 1:26:06 PM UTC+1, Collin Anderson wrote:
>
> It would look like this:
>
>
> WSGIScriptAlias / /home/yems/Documents/testproject/hotel/hotel/wsgi.py 
> 
> WSGIPythonPath /home/yems/Documents/testproject/hotel
>
> 
> 
> Require all granted
> 
> 
>
>
>

-- 
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/16cf0ea4-b324-4d0e-901f-f22839dd82e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying django

2014-08-06 Thread ngangsia akumbo
Please i have a question 

here is the path to my django project

(testproject)yems@yems ~/Documents/testproject/hotel $ 


(testproject)yems@yems ~/Documents/testproject/hotel $ ls
blog  event  gallery  home  hotel  manage.py  yems
(testproject)yems@yems ~/Documents/testproject/hotel $ cd event
(testproject)yems@yems ~/Documents/testproject/hotel/event $ ls
admin.py  admin.pyc  __init__.py  __init__.pyc  models.py  models.pyc  
templates  tests.py  views.py  views.pyc
(testproject)yems@yems ~/Documents/testproject/hotel/event $ 


I have to add this at the bottom of my httpd.conf file in the apache

WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.pyWSGIPythonPath 
/path/to/mysite.com
Require all 
granted

so how can i add this path , am some how confused here




-- 
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/e561dfaa-7d91-41e1-9289-03498e0c31db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: deploying django

2014-08-06 Thread ngangsia akumbo

i migrated everything in to linux mint


On Tuesday, August 5, 2014 5:17:22 PM UTC+1, Jeff Trawick wrote:
>
> On Monday, August 4, 2014 6:12:16 PM UTC-4, Adrian Marshall wrote:
>>
>> I've went through a few different ways. If your set on using apache, 
>> Configure Apache with Mod-WSGI on a server.
>>
>> Here's a Good Tutorial: 
>> http://thecodeship.com/deployment/deploy-django-apache-virtualenv-and-mod_wsgi/
>>
>> If you're having trouble with that and your app isn't too demanding you 
>> can easily upload on Heroku and control it easily using Git commands.
>>
>> check out the docs: 
>> https://devcenter.heroku.com/articles/getting-started-with-django
>>
>> An alternative to both of those would be to use Nginx with uWSGI. If you 
>> want to go that route here's a good tutorial:
>>
>> http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html#concept
>>
>
> As if that weren't enough, you can deploy with Apache httpd proxy + uWSGI 
> in a very similar manner to Nginx + uWSGI. Some may find that more natural 
> than with mod_wsgi.  You can see how similar it can be to an Nginx setup at 
> http://emptyhammock.com/projects/info/pyweb/
>
> But the op says "wamp" which usually means Windows.
>
> gunicorn isn't for Windows, uWSGI 1.9 docs mention some experimental 
> Cygwin port.  What's a suitable production-ready Python "app server" for 
> Windows that would work with Apache httpd or Nginx?  Maybe Apache httpd + 
> mod_wsgi is the way to go there.  (shrug)
>
>
>
>>
>> Good luck!
>>
>> On Monday, August 4, 2014 4:53:00 AM UTC-4, ngangsia akumbo wrote:
>>>
>>> I have created a complete site, 
>>>
>>> i have configured it to run with mysql using wamp
>>>
>>> i have also configured apache in wamp which is up and running
>>>
>>> so i want to deploy the site to run as a life page on the internet using 
>>> apache
>>>
>>> what should i do next
>>>
>>

-- 
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/b679530d-36c9-4b66-86ed-892d5d6553b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


deploying django

2014-08-04 Thread ngangsia akumbo
I have created a complete site, 

i have configured it to run with mysql using wamp

i have also configured apache in wamp which is up and running

so i want to deploy the site to run as a life page on the internet using 
apache

what should i do next

-- 
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/7c8e534e-b694-42b3-8929-69bb3475d2dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: invalid attribute

2014-08-02 Thread ngangsia akumbo

i migrated to linux 
everything is clear 
thanks


On Saturday, August 2, 2014 11:22:30 AM UTC+1, ngangsia akumbo wrote:
>
> That is the error i got , 
>
> i am using windows so it id diffiult at times to copy the full error
>
> On Friday, August 1, 2014 1:40:14 PM UTC+1, Collin Anderson wrote:
>>
>> all of your methods are indented too much. They should be at the same 
>> level as `class Meta`, not part of it.
>>
>

-- 
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/a5602650-7290-4e63-bdbf-b44cf15101d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: invalid attribute

2014-08-02 Thread ngangsia akumbo
That is the error i got , 

i am using windows so it id diffiult at times to copy the full error

On Friday, August 1, 2014 1:40:14 PM UTC+1, Collin Anderson wrote:
>
> all of your methods are indented too much. They should be at the same 
> level as `class Meta`, not part of it.
>

-- 
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/893cf22a-cf00-4e03-86a2-de4d80d95e0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: invalid attribute

2014-08-01 Thread ngangsia akumbo
class Meta invalid attribute , price_sale, get_absolute_url

On Friday, August 1, 2014 3:10:40 AM UTC+1, cmawe...@gmail.com wrote:
>
> Do you have the full error message?
>
>
> On Thursday, July 31, 2014 5:48:55 PM UTC-4, ngangsia akumbo wrote:
>>
>> *Got an invalid attribut error*
>>
>> class Product(models.Model):
>> name = models.CharField(max_length=255, unique=True)
>> slug = models.SlugField(max_length=255, unique=True,
>> help_text="Each product has a unique name")
>> brand = models.CharField(max_length=50)
>> sku = models.CharField(max_length=50)
>> price = models.DecimalField(max_length=9, decimal_places=3)
>> old_price = models.DecimalField(max_length=9, decimal_places=3, 
>> blank=True, default=0.00)
>> image = models.CharField(max_length=50)
>> is_active = models.BooleanField(default=True)
>> is_bestseller = models.BooleanField(default=False)
>> is_featured = models.BooleanField(default=False)
>> quantity = models.IntegerField()
>> description = models.TextField()
>> meta_keywords = models.CharField('Meta Keywords', max_length=300)
>> meta_description = models.CharField("Meta Description", 
>> max_length=255)
>> 
>> created_at = models.DateTimeField(auto_now_add=True)
>> updated_at = models.DateTimeField(auto_now=True)
>> category = models.ManyToManyField(Category)
>>
>>
>> class Meta:
>> db_table = 'products'
>> ordering = ['-created_at']
>>
>> def __unicode(self):
>> return self.name
>>
>>
>> @models.permalink
>> def get_absolute_url(self):
>> return ('catalog_product', (), { 'product_slug': self.slug })
>>
>> 
>> def sale_price(self):
>> if self.old_price > self.price:
>> return self.price
>> else:
>> return None
>>
>> 
>> 
>>
>>

-- 
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/ee279689-4e9d-4147-89bf-2b9fecd317cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


invalid attribute

2014-07-31 Thread ngangsia akumbo
*Got an invalid attribut error*

class Product(models.Model):
name = models.CharField(max_length=255, unique=True)
slug = models.SlugField(max_length=255, unique=True,
help_text="Each product has a unique name")
brand = models.CharField(max_length=50)
sku = models.CharField(max_length=50)
price = models.DecimalField(max_length=9, decimal_places=3)
old_price = models.DecimalField(max_length=9, decimal_places=3, 
blank=True, default=0.00)
image = models.CharField(max_length=50)
is_active = models.BooleanField(default=True)
is_bestseller = models.BooleanField(default=False)
is_featured = models.BooleanField(default=False)
quantity = models.IntegerField()
description = models.TextField()
meta_keywords = models.CharField('Meta Keywords', max_length=300)
meta_description = models.CharField("Meta Description", max_length=255)

created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
category = models.ManyToManyField(Category)


class Meta:
db_table = 'products'
ordering = ['-created_at']

def __unicode(self):
return self.name


@models.permalink
def get_absolute_url(self):
return ('catalog_product', (), { 'product_slug': self.slug })


def sale_price(self):
if self.old_price > self.price:
return self.price
else:
return None




-- 
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/ac5af6a4-c497-4ba9-8d04-17a97f051729%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: image upload

2014-07-31 Thread ngangsia akumbo
no

On Thursday, July 31, 2014 4:43:15 PM UTC+1, cmawe...@gmail.com wrote:
>
> Are you using   ?
>
> On Thursday, July 31, 2014 7:20:19 AM UTC-4, ngangsia akumbo wrote:
>>
>> i have a problem of displaying my image on my web page.
>>
>> i have upload my pic in admin and when i display it it shows me the  this
>>
>> media/Lighthouse_1.jpg
>>
>> models.py
>>
>> class Image(models.Model):
>> title = models.CharField(max_length=60, blank=True, null=True)
>> image = models.FileField(upload_to="images")
>>
>>
>> 
>> 
>>
>>  {{ blogs.title }} - Date Published: {{blogs.pub_date}} 
>>   {{ blogs.content|safe}} Tags: {{ blogs.photo }} 
>>   Reported By: {{blogs.reporter}} 
>>  
>> 
>> 
>> Return back to Main Page
>> News
>> 
>>  
>> 
>> {% endblock %}
>>
>>
>>
>>
>> MEDIA_ROOT = 
>> 'C:/Python27/Scripts/testproject/Django-1.4.3/django/bin/test0/images/'
>> MEDIA_URL = '/media/'
>>
>> STATIC_ROOT = '' "
>> STATIC_URL = '/static/'
>>
>>
>>
>>
>>
>>
>>
>>

-- 
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/9889f679-b424-477c-a276-f44a2e395ce2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


image upload

2014-07-31 Thread ngangsia akumbo
i have a problem of displaying my image on my web page.

i have upload my pic in admin and when i display it it shows me the  this

media/Lighthouse_1.jpg

models.py

class Image(models.Model):
title = models.CharField(max_length=60, blank=True, null=True)
image = models.FileField(upload_to="images")





 {{ blogs.title }} - Date Published: {{blogs.pub_date}} 
  {{ blogs.content|safe}} Tags: {{ blogs.photo }} 
  Reported By: {{blogs.reporter}} 
 


Return back to Main Page
News

 

{% endblock %}




MEDIA_ROOT = 
'C:/Python27/Scripts/testproject/Django-1.4.3/django/bin/test0/images/'
MEDIA_URL = '/media/'

STATIC_ROOT = '' "
STATIC_URL = '/static/'







-- 
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/ee0a99c1-b4aa-47fd-9e19-6937e2c0d705%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


images umpload prob

2014-07-29 Thread ngangsia akumbo
i have the following

MODEL

from django.db import models

class Timer(models.Model):
title = models.CharField(max_length=100)
slug = models.SlugField(unique=True)
image2 = models.ImageField(upload_to='image2/')
last_seen = models.IntegerField()

def __unicode__(self):
return self.title


URLS
from django.conf.urls import patterns, include, url


from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
 url(r'^testp/', include('testp.urls')),

 url(r'^admin/', include(admin.site.urls)),
)

TESTP/URLS

from django.conf.urls import patterns, url

from django.conf import settings
from django.conf.urls.static import static


from testp import views

urlpatterns = patterns('',
# ex: /testp/
url(r'^$', views.timers, name='timers'),
# ex: /test/5/
url(r'^(?P\d+)/$', views.timers_detail, name='timers_detail'),
)+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)


SETTING
# Example: "/home/media/media.lawrence.com/media/"
MEDIA_ROOT = 
'C:/Python27/Scripts/mysite0/Django-1.5/djang/bin/test0/image2/'

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/;, "http://example.com/media/;
MEDIA_URL = '/media/'

# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = 
'C:/Python27/Scripts/mysite0/Django-1.5/djang/bin/test0/image2/static/'

# URL prefix for static files.
# Example: "http://media.lawrence.com/static/;
STATIC_URL = '/static/'

# Additional locations of static files
STATICFILES_DIRS = (
'C:/Python27/Scripts/mysite0/Django-1.5/djang/bin/test0/static/'

TEMPLATE

{{ tis.image2.url}}

WHEN I DISPLAY THE IMAGE IT GIVE ME THE LINK INSTEAD ON THE BROWSER

/media/image2/Desert.jpg

WHERE AM I WRONG

Am using django 1.5

-- 
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/1f016aef-903b-49f0-9641-c1b0bce98fa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django tut 01

2014-07-28 Thread ngangsia akumbo
paste on here the setting files, and the error you are having.

On Monday, July 28, 2014 9:48:21 AM UTC+1, atul...@iiitd.ac.in wrote:
>
> Can't access database sqlite3. I am beginner . I cant use the database 
> when i run command " python manage.py syncdb".
> Please help!
> P.s. Can anyone please tell how to use sqlite3 database ( I know nothing 
> about it )
> Thankyou
>
>

-- 
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/0d920c48-f1b6-42f2-80fc-aa108adcfcf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django upload image

2014-07-28 Thread ngangsia akumbo
please i need some help getting around with upload images

i can put a background image on my site 
i can style it with css and others

but when i upload images on my admin page , it does not get loaded on the 
page 

please need some help here

-- 
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/de141bd1-8b71-4797-a74b-29f08e975c80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django Page

2014-07-26 Thread ngangsia akumbo
Thnaks bro


On Saturday, July 26, 2014 8:37:12 AM UTC+1, Lukáš Němec wrote:
>
>  Hi,
> Try googling django-pages
> It is a small cms I created.
> If you encounter some problems, just ask.
>
> Lukas
>  ------
> From: ngangsia akumbo 
> Sent: ‎26/‎07/‎2014 05:18
> To: django...@googlegroups.com 
> Subject: Re: django Page
>
> can i intergrate the cms in my site?
> cos i will want something dynamic.
>
> On Friday, July 25, 2014 7:41:26 PM UTC+1, Mulianto wrote:
>>
>> Hi,
>>
>> You can use django flatpage .
>>
>>
>>
>> Sent from my Mini Ipad 
>>
>> On 23 Jul 2014, at 15.43, ngangsia akumbo <ngan...@gmail.com> wrote:
>>
>> I want to create an app where the user has the ability to create new 
>> pages on their website
>>
>> the app should be called pages 
>>
>> can someone give me an idea pease?
>>
>> -- 
>> 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/da9cd24a-abde-407e-8255-62f5f6667128%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/da9cd24a-abde-407e-8255-62f5f6667128%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>  -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users...@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/0cc48d60-59c3-43ed-8da6-2c170a4188ac%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/0cc48d60-59c3-43ed-8da6-2c170a4188ac%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: django Page

2014-07-26 Thread ngangsia akumbo
Thanks for the kind response bro

On Saturday, July 26, 2014 7:51:04 PM UTC+1, Mulianto wrote:
>
> Yes you can, just use it first then you will understand what you can do 
> with flatpage.
>
>
>
> Sent from my iPhone
>
> On 26 Jul 2014, at 11:17, ngangsia akumbo <ngan...@gmail.com > 
> wrote:
>
> can i intergrate the cms in my site?
> cos i will want something dynamic.
>
> On Friday, July 25, 2014 7:41:26 PM UTC+1, Mulianto wrote:
>>
>> Hi,
>>
>> You can use django flatpage .
>>
>>
>>
>> Sent from my Mini Ipad 
>>
>> On 23 Jul 2014, at 15.43, ngangsia akumbo <ngan...@gmail.com> wrote:
>>
>> I want to create an app where the user has the ability to create new 
>> pages on their website
>>
>> the app should be called pages 
>>
>> can someone give me an idea pease?
>>
>> -- 
>> 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/da9cd24a-abde-407e-8255-62f5f6667128%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/da9cd24a-abde-407e-8255-62f5f6667128%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>  -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users...@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/0cc48d60-59c3-43ed-8da6-2c170a4188ac%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/0cc48d60-59c3-43ed-8da6-2c170a4188ac%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

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


Re: django Page

2014-07-25 Thread ngangsia akumbo
can i intergrate the cms in my site?
cos i will want something dynamic.

On Friday, July 25, 2014 7:41:26 PM UTC+1, Mulianto wrote:
>
> Hi,
>
> You can use django flatpage .
>
>
>
> Sent from my Mini Ipad 
>
> On 23 Jul 2014, at 15.43, ngangsia akumbo <ngan...@gmail.com > 
> wrote:
>
> I want to create an app where the user has the ability to create new pages 
> on their website
>
> the app should be called pages 
>
> can someone give me an idea pease?
>
> -- 
> 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/da9cd24a-abde-407e-8255-62f5f6667128%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/da9cd24a-abde-407e-8255-62f5f6667128%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

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


Re: django Page

2014-07-23 Thread ngangsia akumbo

i mean django 1.5.8
On Wednesday, July 23, 2014 12:08:58 PM UTC+1, ngangsia akumbo wrote:
>
> i wanted to get the idea. so that is the reason why i asked if i could 
> inlcude the cms on my website as an app.
>
> I have not tried any but i will so , just wanted to get the idea, or a 
> guidance.
>
> I have had alot of probs withurls with  django 1.5.13
>
> On Wednesday, July 23, 2014 11:27:06 AM UTC+1, Tundebabzy wrote:
>>
>>
>> On 23 Jul 2014 11:08, "ngangsia akumbo" <ngan...@gmail.com> wrote:
>> >
>> > this is what am doing.
>> > I am creating a website which i will like to include the ability of 
>> adding pages to that site.
>> >
>> > I have already a  news, event and gallery app working, i wish to 
>> include the ability to create other pages on the site by the end user.
>> >
>>
>> What have you tried?
>>
>> > i am using django1.4
>> >
>>
>> Friend, *try* to upgrade to at least 1.5. 
>>
>> > On Wednesday, July 23, 2014 10:46:07 AM UTC+1, Santiago L wrote:
>> >>
>> >> 2014-07-23 10:15 GMT+02:00 ngangsia akumbo <ngan...@gmail.com>:
>> >>
>> >>> Thanks , i have built some apps in my site like new, event and 
>> gallery, so i want to include a new app that will help to create pages on 
>> the site would the link above help me do that?
>> >>>
>> >>
>> >> What are you trying to do exactly? You talk like you're trying to use 
>> django[1] (a
>> >> framework to develop web applications) like a CMS (Content Manager 
>> System).
>> >> That's why I give you a link to a CMS based on django.
>> >>
>> >> [1] 
>> https://docs.djangoproject.com/en/1.6/faq/general/#is-django-a-content-management-system-cms
>> >
>> > --
>> > 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/5885c8b2-52fa-434f-8e73-a489f697adaa%40googlegroups.com
>> .
>> >
>> > For more options, visit https://groups.google.com/d/optout.
>>
>

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


Re: django Page

2014-07-23 Thread ngangsia akumbo
i wanted to get the idea. so that is the reason why i asked if i could 
inlcude the cms on my website as an app.

I have not tried any but i will so , just wanted to get the idea, or a 
guidance.

I have had alot of probs withurls with  django 1.5.13

On Wednesday, July 23, 2014 11:27:06 AM UTC+1, Tundebabzy wrote:
>
>
> On 23 Jul 2014 11:08, "ngangsia akumbo" <ngan...@gmail.com > 
> wrote:
> >
> > this is what am doing.
> > I am creating a website which i will like to include the ability of 
> adding pages to that site.
> >
> > I have already a  news, event and gallery app working, i wish to include 
> the ability to create other pages on the site by the end user.
> >
>
> What have you tried?
>
> > i am using django1.4
> >
>
> Friend, *try* to upgrade to at least 1.5. 
>
> > On Wednesday, July 23, 2014 10:46:07 AM UTC+1, Santiago L wrote:
> >>
> >> 2014-07-23 10:15 GMT+02:00 ngangsia akumbo <ngan...@gmail.com>:
> >>
> >>> Thanks , i have built some apps in my site like new, event and 
> gallery, so i want to include a new app that will help to create pages on 
> the site would the link above help me do that?
> >>>
> >>
> >> What are you trying to do exactly? You talk like you're trying to use 
> django[1] (a
> >> framework to develop web applications) like a CMS (Content Manager 
> System).
> >> That's why I give you a link to a CMS based on django.
> >>
> >> [1] 
> https://docs.djangoproject.com/en/1.6/faq/general/#is-django-a-content-management-system-cms
> >
> > --
> > 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/5885c8b2-52fa-434f-8e73-a489f697adaa%40googlegroups.com
> .
> >
> > For more options, visit https://groups.google.com/d/optout.
>

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


Re: django Page

2014-07-23 Thread ngangsia akumbo
this is what am doing.
I am creating a website which i will like to include the ability of adding 
pages to that site.

I have already a  news, event and gallery app working, i wish to include 
the ability to create other pages on the site by the end user.

i am using django1.4

On Wednesday, July 23, 2014 10:46:07 AM UTC+1, Santiago L wrote:
>
> 2014-07-23 10:15 GMT+02:00 ngangsia akumbo <ngan...@gmail.com 
> >:
>
>> Thanks , i have built some apps in my site like new, event and gallery, 
>> so i want to include a new app that will help to create pages on the site 
>> would the link above help me do that?
>>
>>  
> What are you trying to do exactly? You talk like you're trying to use 
> django[1] (a
> framework to develop web applications) like a CMS (Content Manager System).
> That's why I give you a link to a CMS based on django.
>
> [1] 
> https://docs.djangoproject.com/en/1.6/faq/general/#is-django-a-content-management-system-cms
>  

-- 
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/5885c8b2-52fa-434f-8e73-a489f697adaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django Page

2014-07-23 Thread ngangsia akumbo
Thanks , i have built some apps in my site like new, event and gallery, so 
i want to include a new app that will help to create pages on the site 
would the link above help me do that?

On Wednesday, July 23, 2014 8:52:19 AM UTC+1, Santiago L wrote:
>
> 2014-07-23 9:44 GMT+02:00 ngangsia akumbo <ngan...@gmail.com 
> >:
>
>> I want to create an app where the user has the ability to create new 
>> pages on their website
>>
>> the app should be called pages 
>>
>> can someone give me an idea pease?
>>
>
> Seems that you need something like a CMS.
> Take a look at https://www.django-cms.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/629e9718-ff76-4607-973d-6658e50be985%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django Page

2014-07-23 Thread ngangsia akumbo
Thanks , i have built some apps in my site like new, event and gallery, so 
i want to include a new app that will help to create pages on the site 
would the link above help me do that?

On Wednesday, July 23, 2014 8:52:19 AM UTC+1, Santiago L wrote:
>
> 2014-07-23 9:44 GMT+02:00 ngangsia akumbo <ngan...@gmail.com 
> >:
>
>> I want to create an app where the user has the ability to create new 
>> pages on their website
>>
>> the app should be called pages 
>>
>> can someone give me an idea pease?
>>
>
> Seems that you need something like a CMS.
> Take a look at https://www.django-cms.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/fd6d15a7-d593-43cd-80d1-30e791f93590%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django Page

2014-07-23 Thread ngangsia akumbo
I want to create an app where the user has the ability to create new pages 
on their website

the app should be called pages 

can someone give me an idea pease?

-- 
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/da9cd24a-abde-407e-8255-62f5f6667128%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django Page

2014-07-23 Thread ngangsia akumbo
I want to create an app where the user has the ability to create new pages 
on their website

the app should be called pages 

can someone give me an idea pease?

-- 
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/e431fc80-fe0a-4eca-bfe3-70379906d1d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


template

2014-07-22 Thread ngangsia akumbo
can someone propose a good template for this model

# Create your models here.
from django.db import models

from django.contrib.auth.models import User
from django.contrib import admin

class Albums(models.Model):
title = models.CharField(max_length=100)
public = models.BooleanField(default=False)

def __unicode__(self):
return self.title

class Tags(models.Model):
tag = models.CharField(max_length=100)

def __unicode__(self):
return self.tag

class Image(models.Model):
title = models.CharField(max_length=60, blank=True, null=True)
image = models.FileField(upload_to="gallery/images")
tags = models.ManyToManyField(Tags, blank=True)
albums = models.ManyToManyField(Albums, blank=True)
created = models.DateTimeField(auto_now_add=True)
rating = models.IntegerField(default=100)
#width = models.IntegerField(blank=True, null=True)
#height = models.IntegerField(blank=True, null=True)
user = models.ForeignKey(User, null=True, blank=True)


def __unicode__(self):
return self.image.name

-- 
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/a879583a-954a-4aa4-afd6-42b02220ac72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django templates

2014-07-22 Thread ngangsia akumbo
please give me an exmaple , all my urls for the various apps are all in the 
main project urls file

On Tuesday, July 22, 2014 12:37:37 PM UTC+1, Akshay Mukadam wrote:
>
>
>
> On Tuesday, July 22, 2014 1:20:14 PM UTC+5:30, ngangsia akumbo wrote:
>>
>> Hi Django Users
>>
>> I have a question.
>>
>> I have created all my apps for my websites which are events , blog,  and 
>> gallery. 
>> They all extends to the base.html file .
>>
>> From my development server i can access this individual app by just typing
>> localhost:8000/blogs and the blog template will appear.
>>
>> My question is this. How do i do for all the apps to appear at once on 
>> the 
>> base.html page?
>>
>> In short i want to be able to open the main website so that all the app 
>> will be on it.
>>
>> what do i need to do?
>>
>> Thanks
>>
>
> In the url file of ur main project link all the url of the respective app 
> u have created and jsut attach it in ur central template that set
>  
>

-- 
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/7a1b0b8e-c9e8-4f09-9208-fc3a959b25d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django templates

2014-07-22 Thread ngangsia akumbo

Ok 
i have created all my apps and extended to the base.html file
so what next?


On Tuesday, July 22, 2014 8:50:14 AM UTC+1, ngangsia akumbo wrote:
>
> Hi Django Users
>
> I have a question.
>
> I have created all my apps for my websites which are events , blog,  and 
> gallery. 
> They all extends to the base.html file .
>
> From my development server i can access this individual app by just typing
> localhost:8000/blogs and the blog template will appear.
>
> My question is this. How do i do for all the apps to appear at once on the 
> base.html page?
>
> In short i want to be able to open the main website so that all the app 
> will be on it.
>
> what do i need to do?
>
> Thanks
>

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


django templates

2014-07-22 Thread ngangsia akumbo
Hi Django Users

I have a question.

I have created all my apps for my websites which are events , blog,  and 
gallery. 
They all extends to the base.html file .

>From my development server i can access this individual app by just typing
localhost:8000/blogs and the blog template will appear.

My question is this. How do i do for all the apps to appear at once on the 
base.html page?

In short i want to be able to open the main website so that all the app 
will be on it.

what do i need to do?

Thanks

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


Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-21 Thread ngangsia akumbo
If you are working with windows , let me give you a very simple guide.
Google and download setuptools.exe and install in to your computer.

First install python 2.7 ans set the python path
Then move to this directory C:\Python27\scripts in the windows command .
You should run easy_install pip 
Then also run easy install virtualevn and your virtual env will be install 
in that directory alone.

Then to create you environment you run this command 
virtualenv --no-site-packages [name of your environment]
for example virtualenv --no-site-packages django_test

Then to activate this environment you type this command
[name of your enviroment]\scripts\activate   make sure you do all this in 
that directory abovee

for example
C:\Python27\scripts\django_test\scripts\activate
then your environment will be activated

Then move to this directory cd django_test
you path will become C:\Python27\scripts\django_test.

Then run pip install django [you can specify the version]

then when django is install move to the directory as so
run the dir command you will see the downloaded django

move to the downloaded django as using this command

cd Django-1.4.3 depending on the version of your django
To install the django now in to the system , type 

setup.py install in this directory 
C:\Python27\scripts\django_test\Django-1.4.3. That will depend your 
directory 

django will be install
then move to cd django
C:\Python27\scripts\django_test\Django-1.4.3\django

move to C:\Python27\scripts\django_test\Django-1.4.3\django\bin\

the u will have to create your projects

run this command withtin that sam directory

C:\Python27\scripts\django_test\Django-1.4.3\django\bin\django-admin.py 
startproject [name of your project]


Then you can figure out the rest
Thanks



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


url probs

2014-07-19 Thread ngangsia akumbo
Good After Django Users

I still have problems with urls.
Please somebody should take a carful look at this urls

urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
#new urls
url(r'^$', PostListView.as_view(), name='news-list'),

url(r'^(?P[-_\w]+)/$', PostDetailView.as_view(), 
name='blogs-detail'),

#events urls
url(r'^$', EventListView.as_view(), name='events-list'),
url(r'^(?P[-_\w]+)/$', EventDetailView.as_view(), 
name='events-detail'),
)
  
when i type http://127.0.0.1:8000/ on the browser, this url

url(r'^$', PostListView.as_view(), name='news-list'), 

will list all the news by their headlin in the form of a link.

when i click on the url it output the content of the news , that is giving 
me the detail url of that news headline.
this url
 
url(r'^(?P[-_\w]+)/$', PostDetailView.as_view(), name='blogs-detail'),

will take care of outputting the content

Ok now i have created a second app called events with the following urls

 url(r'^$', EventListView.as_view(), name='events-list'),
 url(r'^(?P[-_\w]+)/$', EventDetailView.as_view(), 
name='events-detail'),

so how do i open the url for event cos when i type http://127.0.0.1:8000/ 
it outputs only
the url for news, that is the first url above.

-- 
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/d3e14af8-0ab3-4f3a-9b8a-89bb363adc2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


url probs

2014-07-19 Thread ngangsia akumbo
Good After Django Users

I still have problems with urls.
Please somebody should take a carful look at this urls

urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
#new urls
url(r'^$', PostListView.as_view(), name='news-list'),

url(r'^(?P[-_\w]+)/$', PostDetailView.as_view(), 
name='blogs-detail'),

#events urls
url(r'^$', EventListView.as_view(), name='events-list'),
url(r'^(?P[-_\w]+)/$', EventDetailView.as_view(), 
name='events-detail'),
)
  
when i type http://127.0.0.1:8000/ on the browser, this url

url(r'^$', PostListView.as_view(), name='news-list'), 

will list all the news by their headlin in the form of a link.

when i click on the url it output the content of the news , that is giving 
me the detail url of that news headline.
this url
 
url(r'^(?P[-_\w]+)/$', PostDetailView.as_view(), name='blogs-detail'),

will take care of outputting the content

Ok now i have created a second app called events with the following urls

 url(r'^$', EventListView.as_view(), name='events-list'),
 url(r'^(?P[-_\w]+)/$', EventDetailView.as_view(), 
name='events-detail'),

so how do i open the url for event cos when i type http://127.0.0.1:8000/ 
it outputs only
the url for news, that is the first url above.

-- 
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/380a0bd3-85a2-4765-91b2-1888f4ea0b73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: urls prob

2014-07-18 Thread ngangsia akumbo
I solved the problem

the error was coming from the views.py
the list views did not define the model 

thanks for the support

On Friday, July 18, 2014 4:40:08 PM UTC+1, ngangsia akumbo wrote:
>
> This is what is happening
>
> i have created an event and added it to my admin. 
> I have added a content with title event and one with title news
>
>   url(r'^$', EventListView.as_view(), name='event'),
>
> The url above will list the event with order_by date and title
>
>  
>   url(r'^(?P[-_\w]+)/event/$', EventDetailView.as_view(), 
> name='Event-detail')
>
> the second url is suppose to output the content of the event.
> but when i click on the first listings of even it give me the error above 
> with an extension of event
>
> so i tried adding event to url to see if it could change but still the 
> content is not outputed
>
> 
>
> On Friday, July 18, 2014 4:31:49 PM UTC+1, Tom Evans wrote:
>>
>> On Fri, Jul 18, 2014 at 2:54 PM, ngangsia akumbo <ngan...@gmail.com> 
>> wrote: 
>> > 
>> > It is still breaking 
>> > 
>>
>> You should explain precisely what is still breaking. "Still breaking" 
>> doesn't tells anyone who is helping you what is going wrong. 
>>
>> In earlier emails, you are going to the URL "/event/", but in your 
>> urls.py you specify the url as having a slug before the "/event/". 
>>
>> So, "/foo/event/" would match, and would pass slug='foo' to your view 
>> function. 
>>
>> Your url has no slug and so doesn't match. The strings have to match 
>> exactly the regular expression. 
>>
>> Cheers 
>>
>> Tom 
>>
>

-- 
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/3effc629-5a6f-4e35-90df-fe9b1e2d5508%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: urls prob

2014-07-18 Thread ngangsia akumbo
This is what is happening

i have created an event and added it to my admin. 
I have added a content with title event and one with title news

  url(r'^$', EventListView.as_view(), name='event'),

The url above will list the event with order_by date and title

 
  url(r'^(?P[-_\w]+)/event/$', EventDetailView.as_view(), 
name='Event-detail')

the second url is suppose to output the content of the event.
but when i click on the first listings of even it give me the error above 
with an extension of event

so i tried adding event to url to see if it could change but still the 
content is not outputed



On Friday, July 18, 2014 4:31:49 PM UTC+1, Tom Evans wrote:
>
> On Fri, Jul 18, 2014 at 2:54 PM, ngangsia akumbo <ngan...@gmail.com 
> > wrote: 
> > 
> > It is still breaking 
> > 
>
> You should explain precisely what is still breaking. "Still breaking" 
> doesn't tells anyone who is helping you what is going wrong. 
>
> In earlier emails, you are going to the URL "/event/", but in your 
> urls.py you specify the url as having a slug before the "/event/". 
>
> So, "/foo/event/" would match, and would pass slug='foo' to your view 
> function. 
>
> Your url has no slug and so doesn't match. The strings have to match 
> exactly the regular expression. 
>
> Cheers 
>
> Tom 
>

-- 
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/bf26fb31-94c8-4dff-8a2b-89afafbd4b6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: urls prob

2014-07-18 Thread ngangsia akumbo
i will check again
thanks , let me check again

On Friday, July 18, 2014 4:21:52 PM UTC+1, monoBOT monoBOT wrote:
>
> The url "env/" is not validatingbecause the *re *is expecting 
>
> r'^(?P[-_\w]+)/event/$'
>
> and not 
>
> r'^/event/$'
>
> you have to check your *re *skills XD
>
>
> 2014-07-18 14:54 GMT+01:00 ngangsia akumbo <ngan...@gmail.com 
> >:
>
>> It is still breaking
>>
>>
>> On Friday, July 18, 2014 1:56:38 PM UTC+1, Sergiy Khohlov wrote:
>>
>>> try to use 
>>> url(r'^/event/$', EventDetailView.as_view(), name='Event-detail')
>>>
>>>
>>>  and ofcourse turn off color 
>>>
>>> Many thanks,
>>>
>>> Serge
>>>
>>>
>>> +380 636150445
>>> skype: skhohlov
>>>
>>>
>>> On Fri, Jul 18, 2014 at 3:43 PM, ngangsia akumbo <ngan...@gmail.com> 
>>> wrote:
>>>
>>>>  it gives me this error
>>>> Page not found (404) Request Method:GET Request URL:
>>>> http://127.0.0.1:8000/event/
>>>>
>>>> No post found matching the query
>>>>
>>>> You're seeing this error because you have DEBUG = True in your Django 
>>>> settings file. Change that to False, and Django will display a 
>>>> standard 404 page.
>>>>
>>>>
>>>>>  -- 
>>>> 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/f68ef88b-e1a5-4aef-b0b3-cb91730ba312%
>>>> 40googlegroups.com 
>>>> <https://groups.google.com/d/msgid/django-users/f68ef88b-e1a5-4aef-b0b3-cb91730ba312%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@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/0c4f31f2-9c39-4639-a371-32e258153608%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/0c4f31f2-9c39-4639-a371-32e258153608%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> *monoBOT*
> Visite mi sitio(Visit my site): monobotsoft.es/blog/
>  

-- 
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/3d11830d-01d7-4b87-a4ea-a4ebc090ed24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: urls prob

2014-07-18 Thread ngangsia akumbo
i dont get you well


-- 
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/c18fea19-f379-4c1d-968e-d99c2ff6bd49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: urls prob

2014-07-18 Thread ngangsia akumbo
It is still breaking

On Friday, July 18, 2014 1:56:38 PM UTC+1, Sergiy Khohlov wrote:
>
> try to use 
> url(r'^/event/$', EventDetailView.as_view(), name='Event-detail')
>
>
>  and ofcourse turn off color 
>
> Many thanks,
>
> Serge
>
>
> +380 636150445
> skype: skhohlov
>
>
> On Fri, Jul 18, 2014 at 3:43 PM, ngangsia akumbo <ngan...@gmail.com 
> > wrote:
>
>> it gives me this error
>> Page not found (404) Request Method:GET Request URL:
>> http://127.0.0.1:8000/event/
>>
>> No post found matching the query
>>
>> You're seeing this error because you have DEBUG = True in your Django 
>> settings file. Change that to False, and Django will display a standard 
>> 404 page.
>>
>>
>>>  -- 
>> 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/f68ef88b-e1a5-4aef-b0b3-cb91730ba312%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/f68ef88b-e1a5-4aef-b0b3-cb91730ba312%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: urls prob

2014-07-18 Thread ngangsia akumbo
it gives me this error
Page not found (404)Request Method:GETRequest URL:
http://127.0.0.1:8000/event/

No post found matching the query

You're seeing this error because you have DEBUG = True in your Django 
settings file. Change that to False, and Django will display a standard 404 
page.


>

-- 
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/f68ef88b-e1a5-4aef-b0b3-cb91730ba312%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


urls prob

2014-07-18 Thread ngangsia akumbo
*urls*

from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()

from blogs.views import PostListView
from blogs.views import PostDetailView

from events.views import EventListView
from events.views import EventDetailView

urlpatterns = patterns('',

#url(r'^blogs/', include('blogs.urls')),
url(r'^admin/', include(admin.site.urls)),
   
#news urls  
url(r'^news$', PostListView.as_view(), name='home'),
url(r'^(?P[-_\w]+)/$', PostDetailView.as_view(), 
name='Post-detail'),
   
#events urls
url(r'^$', EventListView.as_view(), name='event'),
url(r'^(?P[-_\w]+)/event/$', EventDetailView.as_view(), 
name='Event-detail'), * For God sake this urls keeps breaking*

)

*any help please?*

*views*
# Create your views here.
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.utils import timezone

from events.models import Event


class EventListView(ListView):
models = Event
queryset = Event.objects.all()

def get_context_data(self, **kwargs):
context = super(EventListView, self).get_context_data(**kwargs)
context['now'] = timezone.now()
return context

class EventDetailView(DetailView):

model = Event
#queryset = Event.objects.all()

def get_context_data(self, **kwargs):
context = super(EventDetailView, self).get_context_data(**kwargs)
context['now'] = timezone.now()
return context


*model*

from django.db import models

# Create your models here.
class Event(models.Model):
name = models.CharField(max_length=100, verbose_name="Name of Event", 
blank=True)
slug = models.SlugField(unique=True)
type_of = models.CharField(max_length=100, blank=True, 
verbose_name="Type Of Event")
image1 = models.ImageField(upload_to='blogs/static/events', blank=True)
entertainer = models.CharField(max_length=100, blank=True)
description = models.TextField(verbose_name="Details about the event", 
blank=True)
speakers = models.CharField(max_length=100, blank=True)
pub_date = models.DateTimeField(auto_now_add=True)
location = models.CharField(max_length=100, blank=True)


def __unicode__(self):
return self.name







-- 
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/31e1958b-245b-49e3-9c91-f77b6427ad83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django template

2014-07-17 Thread ngangsia akumbo
Thanks 



On Wednesday, July 16, 2014 3:12:51 PM UTC+1, Andréas Kühne wrote:
>
> Hi,
>
> Sure, but I won't always be able to answer :-)
>
> Regards,
>
> Andréas
>
>
> 2014-07-16 13:49 GMT+02:00 ngangsia akumbo <ngan...@gmail.com 
> >:
>
>> Thanks bro for this inside , can i always contact u personally if i had 
>>> some issues please.
>>>
>>
>> I am from western Africa - Cameroon.
>>
>> 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...@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/b8245c35-329c-430c-baa7-48d44aab3260%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/b8245c35-329c-430c-baa7-48d44aab3260%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


  1   2   >