|
I am trying to create a module that lets me add some "qualifications" for a user. I created these: forum_modules/mcs/__init__.py (blank file) forum_modules/mcs/models.py. Has this in it:
If i run syncdb this table is not created. Also, I originally had a urls.py and views.py, but if I visited my url it showed page not found, so I'm not sure if my module is even being imported.
showing 5 of 7
show 2 more comments
|
|
so after looking at some of the other modules I realized it should be When I visit http://wiki.osqa.net/display/MODULES/How+Modules+Work, it says, "Page level restrictions have been applied that limit access to this page." How does one gain access to that documentation?
(15 May '11, 20:45)
Anton Gerasc...
Nice to see you again, @Anton. The page you refer to contains obsolete and deprecated content. There is no publicly available content to replace it.
(15 May '11, 20:54)
rickross ♦♦
Wiki page is not accessible, access blocked.
(18 Dec '11, 09:59)
nilayparikh
|
Check the logs. Due to the dynamic nature of modules, when they throw errors they are not loaded, and the errors are logged.
Btw, at least in this code it seems to me that you have an indentation problem. The line
verbose_name = "User Qualification"has an extra space before it.that must be the way i pasted it here, the indents are fine in my source. I looked at log/django.osqa.log.txt and it doesn't have any of my modules files listed there. If I run syncdb does it install my module model into the database? because there's no table in my db for my model. Or do I do that separately before osqa can start using my module?
@rsp, you'll have to do
syncdb --allif you have south installed.How did this go in the end? Did you get qualifications working? Would you like to share more of the code, and/or point us at a demonstration of it?
@Andrew_S. My implementation is a somewhat specific application and I think wouldn't be useful for you. Additionally, my application isn't fully developed. However I hope it soon will be and then I intend to post the site and some technical info about what I did. Hopefully then I can be some help.
Lovely, thanks @rsp - I look forward to it