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

syncdb not working #2

Closed
Heldroe opened this issue Nov 30, 2011 · 9 comments
Closed

syncdb not working #2

Heldroe opened this issue Nov 30, 2011 · 9 comments

Comments

@Heldroe
Copy link

Heldroe commented Nov 30, 2011

Hi,

When I do a syncdb, my achievements are not collected. But if I comment lines 21 and 22 of achievements/models.py, they are collected and stored in the database.
I am not using south and don't really understand what is going on.

Are these lines important ? Is this not a bug ?

Thanks

@ogirardot
Copy link
Owner

it may be :)
i'll try to reproduce it right now, but in the meantime,
the achievements app is in your INSTALLED_APP setting variable right ?

@ogirardot
Copy link
Owner

Ok so this is a bug,
when the code you commented is called with south the kwargs variable is :

{'app': 'achievements', 
'sender': None, 
 'signal': <django.dispatch.dispatcher.Signal object at 0x10537f610>}

and when it is called from syncdb (pure and simple) i get :

{'sender': <module 'achievements.models' from '.../achievements/models.py'>, 
 'app': <module 'achievements.models' from '.../achievements/models.py'>, 
 'db': 'default', 
 'created_models': set([]), 
 'verbosity': 1, 
 'signal': <django.dispatch.dispatcher.Signal object at 0x101b2ffd0>,
 'interactive': True}

I'll fix it right away.

@ogirardot
Copy link
Owner

hi there, i published 0.0.6 just now, it should fix your problems,
can you please test it when you have the time ?
thx

@Heldroe
Copy link
Author

Heldroe commented Nov 30, 2011

I just tested it and confirm it now works.
Thanks :)

@ogirardot
Copy link
Owner

thx, did you have any issues or comments on how to use it ?

@Heldroe
Copy link
Author

Heldroe commented Nov 30, 2011

It is pretty easy to use and works out of the box.
One thing was the appconf dependency that is not documented but it is reported in issue #3.

Maybe I just miss a way to get one user's achievements directly (the same way as we get the score), same thing for the whole list of achievements.

@ogirardot
Copy link
Owner

you mean template tags ? or util methods ?

2011/11/30 Heldroe <
reply@reply.github.com

It is pretty easy to use and works out of the box.
One thing was the appconf dependency that is not documented but it is
reported in issue #3.

Maybe I just miss a way to get one user's achievements directly (the same
way as we get the score), same thing for the whole list of achievements.


Reply to this email directly or view it on GitHub:

#2 (comment)

@Heldroe
Copy link
Author

Heldroe commented Nov 30, 2011

Util methods. Template tags may be too much.

@ogirardot
Copy link
Owner

ok working on it.
in the meantime i fixed the dependency problem in 0.0.7.
Regards.

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