On Thu, Jan 21, 2016 at 1:38 PM, <[email protected]> wrote:
> Oh HAI! Alessandro! Thanks for getting back to me good sir! Here are my
> files... I hope you can help... It should be quite easy to fix, but I
> changed the name of certain tablets in the database, instead of User and
> Permission, it is now Users and Permissions, I think that is all which I
> changed... Pretty sure. It made more sense like that imo... That wouldn’t
> be why it doesn’t work, right? :S
>
Well, that' at least the reason why I cannot create the database :D
$ gearbox setup-app --debug
File
"/Users/amol/tmp/flower/venv/lib/python2.7/site-packages/registration/model/sqla_models.py",
line 34, in Registration
user_id = Column(Integer, ForeignKey(primary_key(app_model.User)))
File
"/Users/amol/tmp/flower/venv/lib/python2.7/site-packages/tgext/pluggable/session_wrapper.py",
line 13, in __getattr__
return getattr(self._proxied, item)
AttributeError: 'module' object has no attribute 'User'
tgapp-registration has a foreign key against an "User" model, you can
rename the table (__tablename__ in model class) but the class has to be
named User.
I solved that simply by adding those lines at the end of model/__init__.py:
User = Users
Permission = Permissions
Group = Groups
About the fact that it's unable to find the email_sender configuration
option, it's because you actually specified it inside the [loggers]
section, not inside [app:main], specifically you added that as an option of
the formatter_generic.
I moved all email related options right before the [loggers] section and
it's now working.
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.