zuck / prometeo-erp

[Abandoned] open-source ERP system based on Django. Look at https://github.com/django-erp/django-erp
GNU Lesser General Public License v3.0
12 stars 11 forks source link

Prometeo work with django 1.5 ? #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Prometeo work with django 1.5 ?

Original issue reported on code.google.com by felli...@gmail.com on 9 Oct 2013 at 8:54

GoogleCodeExporter commented 9 years ago
It should...Have you experienced any troubles?

Original comment by emanuele.bertoldi on 10 Oct 2013 at 10:13

GoogleCodeExporter commented 9 years ago
Yes, when I try to execute: python manage.py runserver  show me this:

Error: Can't find the file 'settings.py' in the directory containing 
'manage.py'. It appears you've customized things.
You'll have to run django-admin.py, passing it your settings module.
(If the file settings.py does indeed exist, it's causing an ImportError 
somehow.)

Original comment by felli...@gmail.com on 10 Oct 2013 at 4:58

GoogleCodeExporter commented 9 years ago
It seems you didn't follow the installation instructions reported in the README 
file, as explained in the main page:

https://code.google.com/p/prometeo-erp/source/browse/README

You have to first rename "settings/base.py.tmpl" to "settings/base.py" and edit 
it:

cp settings/base.py.tmpl settings/base.py

I close this issue as invalid.

Please report if the problem is still there after following the installation 
process.

Original comment by emanuele.bertoldi on 11 Oct 2013 at 5:15

GoogleCodeExporter commented 9 years ago
Well, I make all steps explained in README, can I make other think to generate 
a log to put here?

Original comment by felli...@gmail.com on 11 Oct 2013 at 11:53

GoogleCodeExporter commented 9 years ago
Looking the MacOS X log file, I found the problem:

ImportError: cannot import name list_detail

I can't see before because I have one script to execute the syncdb command and 
other thinks... this is the complete log:

(...) Create all others tables
Creating table calendar_event_calendars
Creating table calendar_event_attendees
Creating table calendar_event

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
Username (leave blank to use 'fellipeh'): admin
Email address: ti@xxx.xxx.xxx
Password:
Password (again):
Superuser created successfully.
/Library/Python/2.7/site-packages/django/conf/urls/defaults.py:3: 
DeprecationWarning: django.conf.urls.defaults is deprecated; use 
django.conf.urls instead
  DeprecationWarning)

ImportError: cannot import name list_detail

Original comment by felli...@gmail.com on 11 Oct 2013 at 11:56

GoogleCodeExporter commented 9 years ago
You're right, the bug is confirmed.

In the next days I'll try to figure out if this issue is related to the basic 
Django's project layout change or if it's something else.

Thanks for the report.

Original comment by emanuele.bertoldi on 11 Oct 2013 at 12:13

GoogleCodeExporter commented 9 years ago
Update: the problem seems to be related with new project layout AND final 
removing of old function-base generic views.

Both master and develop are affected.

To manually do the migration, please refer to the following resources:

https://docs.djangoproject.com/en/dev/releases/1.4/#updated-default-project-layo
ut-and-manage-py
https://docs.djangoproject.com/en/1.4/topics/generic-views-migration/

I'm currently working on a refactoring of the entire codebase, fully compatible 
with Django 1.5, on the new GitHub repository at:

https://github.com/PrometeoERPTeam/prometeo-erp

Original comment by emanuele.bertoldi on 14 Oct 2013 at 9:23