Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named reversion #3244

Closed
rajasimon opened this issue Jun 13, 2014 · 13 comments
Closed

No module named reversion #3244

rajasimon opened this issue Jun 13, 2014 · 13 comments

Comments

@rajasimon
Copy link

I followed every step to run but after running runserver gives follow error

(env) C:\Python27\Scripts\cms\demosite>manage.py runserver
ImportError: No module named reversion

@digi604
Copy link
Contributor

digi604 commented Jun 13, 2014

you need to install django-reversion

@digi604
Copy link
Contributor

digi604 commented Jun 13, 2014

but i am not quite sure we have this as a MUST dependency... could post the whole traceback?

@rajasimon
Copy link
Author

but i did nothing i followed the procedure only ...

(env) C:\Python27\Scripts\cms>pip freeze
Django==1.6.5
Pillow==2.4.0
South==0.8.4
argparse==1.2.1
dj-database-url==0.3.0
django-classy-tags==0.5.1
django-cms==3.0.2
django-mptt==0.6.1
django-reversion==1.8.0
django-sekizai==0.7
djangocms-admin-style==0.2.2
djangocms-column==1.3
djangocms-file==0.0.1
djangocms-flash==0.0.2
djangocms-googlemap==0.0.5
djangocms-inherit==0.0.1
djangocms-installer==0.5.2
djangocms-link==1.3.4
djangocms-picture==0.0.2
djangocms-style==1.3
djangocms-teaser==0.0.1
djangocms-text-ckeditor==2.1.6
djangocms-video==0.0.1
html5lib==0.999
pytz==2014.4
six==1.7.2

(env) C:\Python27\Scripts\cms>manage.py runserver
ImportError: No module named reversion

(env) C:\Python27\Scripts\cms>

@rajasimon
Copy link
Author

is it right i followed these steps

Quick Start

You can use the django CMS installer:

$ pip install --upgrade virtualenv
$ virtualenv env
$ source env/bin/activate
(env) $ pip install djangocms-installer
(env) $ djangocms -p . my_demo
(env) $ cd my_demo

@digi604
Copy link
Contributor

digi604 commented Jun 13, 2014

mmh django-reversion is installed.... is this virtualenv active as well? if django-reversion on the python path?

@digi604
Copy link
Contributor

digi604 commented Jun 13, 2014

mmh this looks good... can you print out what you entered into your console? You seam to be on windows... and i am not that familiar with windows and the caveats that could happen on this platform.

@rajasimon
Copy link
Author

You asked what i entered in the command terminal .. here it is

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\judy>cd ..

C:\Users>cd ..

C:>cd Python27\Scripts

C:\Python27\Scripts>cd cms

C:\Python27\Scripts\cms>dir
Volume in drive C has no label.
Volume Serial Number is 7077-D498

Directory of C:\Python27\Scripts\cms

06/13/2014 01:24 PM

.
06/13/2014 01:24 PM ..
06/13/2014 12:17 PM env
0 File(s) 0 bytes
3 Dir(s) 27,787,010,048 bytes free

C:\Python27\Scripts\cms>env\Scripts\activate
(env) C:\Python27\Scripts\cms>pip install djangocms-installer
Requirement already satisfied (use --upgrade to upgrade): djangocms-installer in
c:\python27\scripts\cms\env\lib\site-packages
Cleaning up...

(env) C:\Python27\Scripts\cms>djangocms -p . my_demo
Database configuration (in URL format) [default sqlite://localhost/project.db]:

django CMS version (choices: 2.4, 3.0, stable, develop) [default stable]:
Django version (choices: 1.4, 1.5, 1.6, stable) [default stable]:
Activate Django I18N / L10N setting (choices: yes, no) [default yes]:
Install and configure reversion support (choices: yes, no) [default yes]:
Languages to enable. Option can be provided multiple times, or as a comma separa
ted list. Only language codes supported by Django can be used here: ,
Optional default time zone [default America/Chicago]:
Activate Django timezone support (choices: yes, no) [default yes]:
Activate CMS permission management (choices: yes, no) [default yes]:
Use Twitter Bootstrap Theme (choices: yes, no) [default no]: yes
Use custom template set [default no]:
Load a starting page with examples after installation. Choose "no" if you use a
custom template set. (choices: yes, no) [default no]: yes
Syncing...
Creating tables ...
Creating table djangocms_text_ckeditor_text
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_content_type
Creating table django_session

@digi604
Copy link
Contributor

digi604 commented Jun 13, 2014

what happens if you activate the virtualenv and type:

pip uninstall django-reversion
pip install django-reversion==1.8.0

python manage.py runserver

@rajasimon
Copy link
Author

Ha ha .. Thanks for the help . After uninstall and install now working fine.

Now i have different error in runserver

AttributeError at /
'NoneType' object has no attribute 'split'
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.6.5
Exception Type: AttributeError
Exception Value:
'NoneType' object has no attribute 'split'
Exception Location: C:\Python27\Scripts\cms\env\lib\site-packages\cms\utils\i18n.py in get_default_language, line 143
Python Executable: C:\Python27\Scripts\cms\env\Scripts\python.exe
Python Version: 2.7.7
Python Path:
['C:\Python27\Scripts\cms',
'C:\Windows\system32\python27.zip',
'C:\Python27\Scripts\cms\env\DLLs',
'C:\Python27\Scripts\cms\env\lib',
'C:\Python27\Scripts\cms\env\lib\plat-win',
'C:\Python27\Scripts\cms\env\lib\lib-tk',
'C:\Python27\Scripts\cms\env\Scripts',
'C:\Python27\Lib',
'C:\Python27\DLLs',
'C:\Python27\Lib\lib-tk',
'C:\Python27\Scripts\cms\env',
'C:\Python27\Scripts\cms\env\lib\site-packages']
Server time: Fri, 13 Jun 2014 14:24:11 +0530

@rajasimon
Copy link
Author

I think only project was created .. am i right ?

Shall i create app for that ..?

@digi604
Copy link
Contributor

digi604 commented Jun 13, 2014

You din't enter any languages when you run the installer

whe it asks you:
Languages to enable. Option can be provided multiple times, or as a comma separa
ted list. Only language codes supported by Django can be used here:

you need to enter language code: en, de, etc....

@rajasimon
Copy link
Author

after given the 'en' gives same error. What should i do ..?

I am in at office now .... after reaching home i ll try with my ubuntu .. and i ll let u know

@rajasimon
Copy link
Author

you can close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants