[mezzanine-users] Models are not working

2014-04-02 Thread Tameen Malik
I have created Models like *models.py file:* > from django.db import models > from mezzanine.pages.models import Page > > class Author(Page): > dob = models.DateField("Date of birth") > I am using Wamp to save database/tables. My database name is abcdef * tables have created i

Re: [mezzanine-users] Fab Script ImportError: No module named future.builtins

2014-04-02 Thread Josh Cartmell
No worries, I would just try reinstalling it and also trying explicitly installing future, so: pip install future pip install fabric On Wed, Apr 2, 2014 at 2:29 PM, Kyle Pennell wrote: > Also checked outside of my virtualenv: > > root@kpennell:/opt/myenv/mezzanine_app# python > Python 2.7.3 (de

Re: [mezzanine-users] Fab Script ImportError: No module named future.builtins

2014-04-02 Thread Kyle Pennell
Also checked outside of my virtualenv: root@kpennell:/opt/myenv/mezzanine_app# python Python 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> 2.7.3 Sorry for the non-stop assault of questions, Josh. On Wed

Re: [mezzanine-users] Fab Script ImportError: No module named future.builtins

2014-04-02 Thread Kyle Pennell
Removed the discus comment so as to not make more work. On Wednesday, April 2, 2014 3:14:55 PM UTC-6, Kyle Pennell wrote: > > I'm using 2.7 >> >> >> (myenv)root@kpennell:/opt/myenv# python >> Python 2.7.3 (default, Feb 27 2014, 19:58:35) >> [GCC 4.6.3] on linux2 >> Type "help", "copyright", "cred

Re: [mezzanine-users] Fab Script ImportError: No module named future.builtins

2014-04-02 Thread Kyle Pennell
I'm using 2.7 > > > (myenv)root@kpennell:/opt/myenv# python > Python 2.7.3 (default, Feb 27 2014, 19:58:35) > [GCC 4.6.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> hmm.. On Wednesday, April 2, 2014 2:12:13 PM UTC-6, Josh Cartmell wrote: > > A

Re: [mezzanine-users] Fab Script ImportError: No module named future.builtins

2014-04-02 Thread Josh Cartmell
Are you using Python 3? If so you can't use it with fabric and need to use 2. If you are using python 2 try reinstalling fabric, deactivating and reactivating your virtualenv. On Wed, Apr 2, 2014 at 11:37 AM, Kyle Pennell wrote: > Hey Josh, > I just hit this after running that tutorial. Any

Re: [mezzanine-users] Fab Script ImportError: No module named future.builtins

2014-04-02 Thread Kyle Pennell
Hey Josh, I just hit this after running that tutorial. Any idea what I might need to change? On Friday, March 21, 2014 3:05:23 PM UTC-6, Josh Cartmell wrote: > > Hey Ziwei, you are correct, fabric doesn't currently support python 3. > Per http://docs.fabfile.org/en/1.8/ is works with 2.5-2.7.

Re: [mezzanine-users] What should/would example Fab file settings look like?

2014-04-02 Thread Josh Cartmell
That we did Ken ;) Kyle, now that you bring it up, those two settings are actually unnecessary and I should probably just remove them. Take a look at https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py#L43 . If they aren't present it sets them to sensible de

Re: [mezzanine-users] What should/would example Fab file settings look like?

2014-04-02 Thread Kyle Pennell
Kenneth, In that example "VIRTUALENV_HOME": "", # Absolute remote path for virtualenvs # "PROJECT_NAME": "", # Unique identifier for project These are left blank. Why? > > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscri

Re: [mezzanine-users] What should/would example Fab file settings look like?

2014-04-02 Thread Ken Bolton
>From my tutorial on using Fabric to deploy to Vagrant: FABRIC = { "SSH_USER": "vagrant", # SSH username "SSH_PASS": "vagrant", # SSH password (consider key-based authentication) #"SSH_KEY": "", "HOSTS": ['', ], # List of host names or IPs. "VIRTUALENV_HOME": "/home/vagrant", # Absolute remot

[mezzanine-users] Re: What should/would example Fab file settings look like?

2014-04-02 Thread Kyle Pennell
Wow, fast replies. Thanks. Ok, so "VIRTUALENV_HOME" has nothing to do with "source bin/activate"? VIRTUALENV_HOME is where the project will live on the server's filesystem Silly question, but how does one know where it will live? On Wednesday, April 2, 2014 11:38:05 AM UTC-6, Kyle Pennell wr

Re: [mezzanine-users] What should/would example Fab file settings look like?

2014-04-02 Thread Ken Bolton
You can see that Josh and I used the same "source" material: https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/settings.py#L313-L334 On Wed, Apr 2, 2014 at 1:58 PM, Josh Cartmell wrote: > Here's what the one I used to deploy to Digital Ocean looked like: > > FABRIC

Re: [mezzanine-users] What should/would example Fab file settings look like?

2014-04-02 Thread Josh Cartmell
Here's what the one I used to deploy to Digital Ocean looked like: FABRIC = { "SSH_USER": "do", # SSH username "SSH_PASS": "", # SSH password (consider key-based authentication) "SSH_KEY_PATH": "/Users/josh/.ssh/id_rsa.pub", # Local path to SSH key file, for key-based auth "HOSTS

Re: [mezzanine-users] Unable to view forms pages on deployed site

2014-04-02 Thread Devon Campbell
I have not made any changes to the form template at all. I haven't made any changes to the code since I was running on my local development copy where the forms were working properly. The only things that would have changed (as far as I'm aware) are the environment and the absence of my local_

[mezzanine-users] What should/would example Fab file settings look like?

2014-04-02 Thread Kyle Pennell
Asking a question for myself and hope it helps other beginners out there. I'm trying to deploy using Fab File and Josh's Tutorial . I was trying to fill in the Fabfile settings and simply don't understa

Re: [mezzanine-users] Unable to view forms pages on deployed site

2014-04-02 Thread Josh Cartmell
My best guess is that for some reason form isn't ending up in the context. Did you modify the templates for Form's at all? On Wed, Apr 2, 2014 at 9:59 AM, Devon Campbell wrote: > I just deployed my Mezzanine site, and I'm not able to view forms on the > live site. Here's the traceback: > > Trac

Re: [mezzanine-users] Link urls (page.get_absolute_url) ignore language-based url prefix

2014-04-02 Thread Josh Cartmell
Hey Peteris, Mezzanine's Page model has it's own get_absolute_url defined which may be the problem (I'm not familiar with django-solid-il8n-urls). You could probably get the desired functionality by monkey patching Page's get_absolute_url to work the way you expect. The "Monkey Patching" section o

[mezzanine-users] Unable to view forms pages on deployed site

2014-04-02 Thread Devon Campbell
I just deployed my Mezzanine site, and I'm not able to view forms on the live site. Here's the traceback: Traceback (most recent call last): > File > "/home/raddevon/webapps/radworks/lib/python2.7/django/core/handlers/base.py", > line 139, in get_response > response = response.render() > Fil

[mezzanine-users] Link urls (page.get_absolute_url) ignore language-based url prefix

2014-04-02 Thread PÄ“teris Paikens
Hello, I'm using i18n urls where the specific pages are prefixed with the language code, e.g. www.mysite.org/en/about/, using the django-solid-i18n-urls pack, and Mezzanine seems to find the pages appropriately. However, for generated URL's