Q: I need to manipulate database contents in separate functions but if I place the code to a separate module it can't connect to the database.How can I access the database from separate module? Should I use the same connection string in them as used in model files (db.py)?
Q: Do I need to create a view for every separate controller? Or can I use the same view in many controllers?
- Use indexesQ: Should indexes be defined in model file after defining tables or somewhere else? So far I have found no difference in performance when defining indexes.
Hoping he will pay some code so we can see where the problem is...
Jim
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/vIsm1ojjzDk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.