I have been able to create 2 forms but other attempts to create more forms fail!!
These are my tables;
db.define_table('government',
Field('govName', requires=IS_NOT_EMPTY()),
Field('tel', requires=IS_NOT_EMPTY()),
Field('email', requires=IS_NOT_EMPTY()),
format='%(govName)s', migrate=False,fake_migrate=True)
db.define_table('governmenttForm',
Field('formImage', 'upload'),
Field('filledformImage', 'upload'),
Field('formName',requires=IS_NOT_EMPTY()),
Field('governmentName', 'reference government'),
format='%(formName)s',migrate=False,fake_migrate=True)
db.define_table('governmetFormPages',
Field('formImage', 'upload'),
Field('formTitle',requires=IS_NOT_EMPTY()),
Field('formName', 'reference govmntForm'),migrate=False,fake_migrate=True)
I am able to create a form for the governmentForm table but when i try to load up the pages for governmentFormPages table i get the error
Below is the stack
127.0.0.1.2017-07-02.10-06-22.18c363e3-13c2-47f7-ace4-3692239493c4
| web2py™ | Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 |
|---|
1. | Traceback (most recent call last): |
db.define_table('government',
Field('govName', requires=IS_NOT_EMPTY()),
Field('tel', requires=IS_NOT_EMPTY()),
Field('email', requires=IS_NOT_EMPTY()),
format='%(govName)s', migrate=False,fake_migrate=True)
Field('formImage', 'upload'),
Field('filledformImage', 'upload'),
Field('formName',requires=IS_NOT_EMPTY()),
Field('governmentName', 'reference government'),
format='%(formName)s',migrate=False,fake_migrate=True)
db.define_table('governmetFormPages',
Field('formImage', 'upload'),
Field('formTitle',requires=IS_NOT_EMPTY()),
Field('formName', 'reference govmntForm'),migrate=False,fake_migrate=True)
Hey Santi, how do i go about doing that, deleting all the tables in the database backup folder?
cd [web2pydir]/applications/formulator/databases
rm *.table
--
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/CPmr9UHWvOA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think the filename ends with .sqlite doesnt it?
--
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/CPmr9UHWvOA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.