Posted by Kamidev |
|
The newforms-admin branch just merged into trunk: http://code.djangoproject.com/changeset/7960.
How should SCT deal with this? From now on, SCT using the latest trunk will break unless converted to newforms-admin. Of course, a quick fix it to explicitly check out a revison number < 7960. But that does not seem like a good long-term strategy. Is anyone else thinking about this right now? |
|
Posted by Herbert Poul |
|
i have the feeling until 1.0 is released there will be many more incompatible changes in django trunk :)
(e.g. the rename of 'newforms' to 'forms' is another example) .. i haven't yet discovered that the newforms admin is in the trunk .. but it must be certainly fixed in SCT .. i will try to get this done asap :) Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Herbert Poul |
|
i have adapted the URL configuration of CommunityDraft and the admin setup in models.py/admin.py
if you update from SCTs trunk it should work again with django trunk .. Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Kamidev |
|
Perhaps I messed up something. My updated CommunityDraft works locally with the latest and greatest of everything. But "/admin" raises this:
Traceback (most recent call last): File "/Library/Python/2.5/site-packages/django/core/servers/basehttp.py", line 277, in run self.result = application(self.environ, self.start_response) File "/Library/Python/2.5/site-packages/django/core/servers/basehttp.py", line 634, in __call__ return self.application(environ, start_response) File "/Library/Python/2.5/site-packages/django/core/handlers/wsgi.py", line 204, in __call__ response = self.get_response(request) File "/Library/Python/2.5/site-packages/django/core/handlers/base.py", line 67, in get_response response = middleware_method(request) File "/Library/Python/2.5/site-packages/django/middleware/common.py", line 72, in process_request urlresolvers.resolve(new_url1) File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", line 292, in resolve return get_resolver(urlconf).resolve(path) File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", line 233, in resolve sub_match = pattern.resolve(new_path) File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", line 233, in resolve sub_match = pattern.resolve(new_path) File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", line 172, in resolve return self.callback, args, kwargs File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", line 184, in _get_callback raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)) ViewDoesNotExist: Tried index in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'index' |
|
Posted by Herbert Poul |
|
this is weird, because it works for me ..
have you changed anything on the url config ? it should look like: (r'^admin/(.*)', admin.site.root), Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Kamidev |
|
My config didn't look like that. I may have messed up the SVN update.
I'll start over with a fresh checkout. I checked out CommunityTools first and then checked out CommunmityDraft inside the created folder. Is there a better way to do it? |
|
Posted by Herbert Poul |
|
the easiest way is to checkout communitytools/ and communitydraft/ into the same directory so they exist side by side .. then all directories in communitydraft/community/settings.py are correctly set up ..
Hey, we have Signatures !!! Great, isn't it ? ;) |
|
Posted by Kamidev |
|
Ok, I'm up and running with newforms-admin now. Thanks!
|
|
Posted by Kamidev |
|
Hi again!
Something appears to be broken now. Here is the backwards-incompatible change: http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Signalrefactoring I haven't tried to patch it myself yet. But this is my traceback: ~/projects/communitydraft/community$ .py runserver /Users/jonas/projects/communitytools/sphenecoll/sphene/community/__init__.py:7: DeprecationWarning: django.newforms is no longer new. Import django.forms instead. from django import newforms as djangoforms /Users/jonas/projects/communitytools/sphenecoll/sphene/community/models.py:602: DeprecationWarning: dispatcher.connect() is deprecated; use Signal.connect() instead. dispatcher.connect(community_profile_edit_init_form, signal = profile_edit_init_form, sender = EditProfileForm) Traceback (most recent call last): File "manage.py", line 17, in <module> execute_manager(settings) File "/Library/Python/2.5/site-packages/django/core/management/__init__.py", line 301, in execute_manager utility.execute() File "/Library/Python/2.5/site-packages/django/core/management/__init__.py", line 248, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Library/Python/2.5/site-packages/django/core/management/base.py", line 77, in run_from_argv self.execute(*args, **options.__dict__) File "/Library/Python/2.5/site-packages/django/core/management/base.py", line 86, in execute translation.activate('en-us') File "/Library/Python/2.5/site-packages/django/utils/translation/__init__.py", line 73, in activate return real_activate(language) File "/Library/Python/2.5/site-packages/django/utils/translation/__init__.py", line 43, in delayed_loader return g['real_%s' % caller](*args, **kwargs) File "/Library/Python/2.5/site-packages/django/utils/translation/trans_real.py", line 209, in activate _active[currentThread()] = translation(language) File "/Library/Python/2.5/site-packages/django/utils/translation/trans_real.py", line 198, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File "/Library/Python/2.5/site-packages/django/utils/translation/trans_real.py", line 181, in _fetch app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1:]) File "/Users/jonas/projects/communitytools/sphenecoll/sphene/community/__init__.py", line 11, in <module> from sphene.community.sphutils import get_sph_setting File "/Users/jonas/projects/communitytools/sphenecoll/sphene/community/sphutils.py", line 7, in <module> from sphene.community.middleware import get_current_request, get_current_sphdata File "/Users/jonas/projects/communitytools/sphenecoll/sphene/community/middleware.py", line 5, in <module> from sphene.community.models import Group File "/Users/jonas/projects/communitytools/sphenecoll/sphene/community/models.py", line 602, in <module> dispatcher.connect(community_profile_edit_init_form, signal = profile_edit_init_form, sender = EditProfileForm) File "/Users/jonas/projects/djtrunk/django/dispatch/dispatcher.py", line 210, in connect return signal.connect(receiver, sender, weak) AttributeError: 'object' object has no attribute 'connect' --- Last Edited by Kamidev at 2008-08-08 06:33:34 --- --- Last Edited by Kamidev at 2008-08-08 06:33:52 --- |
Please login to post a reply.