pyramid + alchemy + registration/login page(pyramid_fullauth)?

33 views
Skip to first unread message

Lukasz Szybalski

unread,
Oct 20, 2017, 6:50:59 PM10/20/17
to pylons-...@googlegroups.com
Hello
1. What is the quickest way to build a alchemy scafold app with registration/login/logout functions?

I found
pyramid_fullauth
but I'm having problems getting the tables to load into database... If there is a faster way to get it up and running please let me know or if you guys could help me with below:


2. Help on pyramid_fullauth


A) to get pyramid_fullauth to work you need to import tables from that module. I know alemic can help me with that but I'm not sure what to do next here:


virtualenv -p python3 env_py3_test
source env_py3_test/bin/activate
pip install pyramid
pip install cookiecutter
#create project "myapp"
cd myapp
pip install -e ".[testing]"  #(I don't know why this step installs everything properly vs python setup.py deploy which does not and causes missing packages...but that's a different issue..but probably a show stopper for newbies FYI)
python setup.py develop
initialize_myapp_db development.ini

#Now I got my app, and database.
pip install pyramid_fullauth
vi myapp/__init__.py
#Add Right before config.scan():
config.include('pyramid_basemodel')
config.include('pyramid_fullauth')

#Fast test:
pserve development.ini --reload
http://localhost:6543/register
#boom it works, I have a registration page but signup button complains about missing tables.
#How do I load the table now?
pip install alembic
alambic init
cd alambic
#vi env.py
#on line 18 add:
#Right before def run_migrations_offline

from myapp.models.meta import Base
target_metadata = Base.metadata
 
#Now I guess I suppose to import fullauth models...but how?

from pyramid_fullauth import models?
#https://github.com/fizyk/pyramid_fullauth/issues/47   #not enough details for me?
Could somebody guide me what to do from here?

Thank you
Lucas

Steve Piercy

unread,
Oct 20, 2017, 8:59:02 PM10/20/17
to pylons-...@googlegroups.com
pyramid_fullauth is not supported by the Pylons Project. Members on this list might provide support for it, but the authoritative source for support is the package maintainer.

That said, Pyramid has a cookiecutter used in a tutorial that provides what you seek.

--steve



--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAKkTUv23AG3AW3JBov6PF2sKo2HU%3D1EFzVXDWLU_FXzj%2BbcMXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages