Re: [mezzanine-users] BACKUP Server For Mezzanine Site.

2015-11-24 Thread sathish anton
Hi,
Thank You for your inputs.
I had Messed with my local files as i was trying to add some new apps.
So i required to backup my production M/c src and contents.

I managed to replicate by following below steps
This is what i did to replicate manually.

1. pip freeze >production_requiremnts.txt(Production M/c)
2. virtualenv  (local M/c)
3. cd  (local M/c)
4. source bin/actiate (local M/c Activate virtual env)
5. pip install -U -r production_requirements.txt(local m/c)
6. mezzanine-project -a cartridge   (local M/c)
7. pg_dump -Fc dbname > db.dump (Production M/c)
8. createdb newdb (Local M/c)
9. pg_restore -d newdb db.dump(local M/c)
10. Updated local_settings.py with newdb
11. Python manage.py runserver (Able to login with username created in 
production env)
12.  rsync   (to update my apps, media 
and static files)
13. Updated my settings.py to reflect the static, media ,new database and 
apps.
14. Ran python manage.py runserver to see identical pages and data.

Please let me know if i am missing any further steps required such as

1. python manage.py dumpdata(prod m/c)
2. python manage.py loaddata(llocal M/c)
Are the above required.

Thanks.
Sathish A




On Monday, 23 November 2015 17:49:20 UTC+5:30, Kenneth Bolton wrote:
>
> What have you tried?
>
> Mezzanine ships with backup and restore functions for the database in the 
> Fabric script. Your VCS-of-choice handles your static files. Uploaded media 
> content is not a "one size fits all" problem, and is left as an exercise 
> for the developer. I modify the fabfile.py file that ships with Mezzanine 
> for the specific requirements of each project. Automated timed backups can 
> be done with cron or celery.
>
> hth.
>
> -ken
>
> On Mon, Nov 23, 2015 at 7:00 AM, sathish anton  > wrote:
>
>> Hi,
>> Please provide steps to backup all stuff including content, media, 
>> database and everything replicated in a secondary server at regular 
>> intervals.
>> Hence the same site can be replicated in the event of a crash.
>>
>> Thanks.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: How to setup multiple themes in Mezzanine?

2015-11-24 Thread sathish anton
Hi,
This might be of some help. Although i have not tried.
http://ilblackdragon.blogspot.in/2011/04/django-themes.html

Thanks.

On Sunday, 22 November 2015 03:41:58 UTC+5:30, wh4n wrote:
>
> I just created an app that have the structure below:
>
> project_name
> - theme_one
> -- static
> -- templates
>
> I got it working but my big question now is how do I make it so that from 
> inside the settings page I can choose from for example theme_one and 
> theme_two and switch?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Python 3 and fabric

2015-11-24 Thread sathish anton
Hi,
Have anyone tried "invoke" a fork of fabric for python 3 written by same 
author.

Thanks.

On Wednesday, 11 November 2015 01:12:03 UTC+5:30, Joshua Glenn wrote:
>
> I have installed mezzanine and deployed a working test website with it 
> (the hard way). But I wanted to check into the fabric deployment tools that 
> are included with mezzanine. But, I am using Python 3. Does fabric even 
> work with Py3?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Different Static Url for Each Site in MultiTenancy

2015-11-24 Thread Matt Mansour
Actually I misstated. I am only trying to solve this for the MEDIA_URL. 
Specifically for the image that would be selected as the default image in a 
Facebook share open graph scenario in a blog post.  The STATIC_URL can have 
the same domain across multiple sites without Facebook reach issues. 

I'll report back on the solution I go with. 

Thanks

On Friday, November 20, 2015 at 6:28:04 PM UTC-8, Matt Mansour wrote:
>
> One approach I am looking into is adding / overiding the static template 
> context processor. But I am wondering if there is a cleaner way. Or 
> something simple that I am overlooking. 
>
> On Friday, November 20, 2015 at 4:48:28 PM UTC-8, Matt Mansour wrote:
>>
>> Howdy all -
>>
>> I am working on multi tenancy mezzanine project. I define a static URL in 
>> settings (in this case a Cloudfront URL). However, the static URL needs to 
>> change to match the site I am accessing. 
>>
>> For example, if I am on *example.com * I want my 
>> static url to render as *media.example.com/static/ 
>> ... * Likewise, if I am on *example2.com 
>> * I want my static url to render as 
>> *media.example2.com/static/ 
>> *
>>
>> Has anyone here had to implement something similar? 
>>
>> Unfortunately when images are rendered from a different domains than the 
>> site domain strange things can happen; like Facebook share reach 
>> diminishing, as their current algo seems to associate that sort of thing as 
>> spam.
>>
>> Cheers
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Remove the term "Blog" from URL

2015-11-24 Thread R.J. Jackson
Hello,

Whenever I add a blog post the url will be www.mysite.com/blog/mypost.

How do I go about removing blog from the url. 

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Remove the term "Blog" from URL

2015-11-24 Thread Ken Bolton
Hi R.J.,

In your project's urls.py file, check out lines 56-64
.
You can uncomment line 64 then comment out line 77 for the desired effect.

hth.

-ken

On Tue, Nov 24, 2015 at 11:23 AM, R.J. Jackson 
wrote:

> Hello,
>
> Whenever I add a blog post the url will be www.mysite.com/blog/mypost.
>
> How do I go about removing blog from the url.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.