view raw
OverHeat OverHeat - 6 months ago 72
Python Question

Count visitors on your site with django

I want to import countviews app and embed it into my project.

I'm using

django 1.10
python 2.7

I used
pip install django-hitcount
and add
into installed apps (myapp/

When I run the server, I get an error:

myapphitcount module not found.

In directory MYAPP, I don't have folder hitcount.

Should I run
python startapp hitcount


Seems like you forgot to add a comma:

    'myapp' # this must be followed by a comma

Since you haven't added a comma, python concatenates two strings 'myapp' and 'hitcount' into 'myapphitcount', so django can't find such application.