# My project doesn't like the new app

**URL:** <https://forum.kirupa.com/t/my-project-doesnt-like-the-new-app/263177>\
**Category:** programming\
**Created:** [June 13, 2008, 3:13am UTC](https://forum.kirupa.com/t/my-project-doesnt-like-the-new-app/263177 "2008-06-13T03:13:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [June 13, 2008, 3:13am UTC](https://forum.kirupa.com/t/my-project-doesnt-like-the-new-app/263177/1 "2008-06-13T03:13:10Z")

</div>

I have a current Django project with a simple templating app called “get\_page”. It works fine, however i cannot get a new app to work. It is giving me the ol’

```auto
[SIZE=2]Tried index in module jj.blog.views. Error was: 'module' object has no attribute 'index'[/SIZE]

```

error.

My directory structure looks like this:  
 ![](http://joshuajonah.com/directory.png)

django-projects/jj/settings.py:

```auto
...
...
ROOT_URLCONF = 'jj.urls'

TEMPLATE_DIRS = (
    "/var/www/vhosts/joshuajonah.com/httpdocs"
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'jj.get_page',
    'jj.blog',
)

```

django-projects/jj/urls.py:

```auto
from django.conf.urls.defaults import *

urlpatterns = patterns('jj',
    (r'^blog/', 'blog.views.index'),
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^$', 'jj.get_page.views.theindex'),
    (r'^(?P<page_name>\w+)/$', 'get_page.views.index'),
)

```

django-projects/jj/blog/views.py:

```auto
from django.http import HttpResponse

def index(request):
    return HttpResponse("Hello, world. You're at the freakin index.")

```

I have been careful to restart Apache whenever i make changes to .py files, no help.  
It finds the module but refuses to recognize the views i define in it.

Any ideas guys?

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [June 13, 2008, 3:34am UTC](https://forum.kirupa.com/t/my-project-doesnt-like-the-new-app/263177/2 "2008-06-13T03:34:08Z")

</div>

resolved, was the permissions on the file
