[mezzanine-users] Re: Bizarre issue- Dumping data from one server to another doesn't transfer keywords properly

2014-02-14 Thread Jackson Hong
This was exactly the issue. Thank you so much for this tip.

Cheers.

On Tuesday, February 11, 2014 6:21:06 PM UTC-5, Justin McKeon wrote:

 Keywords have a foreign key to ContentType which can have different 
 primary keys between databases.

 https://docs.djangoproject.com/en/dev/topics/serialization/#natural-keys

 I'm assuming you are using the django dump.  The quick and dirty way to do 
 is to manually update your dump file but a better solution is to use MySQL 
 to backup/drop/full restore .
 I'm use PostgreSQL and am not familiar with the MySQL options, though.

 On Tuesday, February 11, 2014 10:54:48 AM UTC-6, Jackson Hong wrote:

 Hello,

 This is the situation. I have a staging and a production server. I make 
 changes to pages on the staging server and then dump and load it into the 
 production server. 

 Everything transfers fine except for keywords of a page.

 I am using MySQL.

 Let me know if more information is required.

 Has anyone encountered this before?




-- 
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/groups/opt_out.


[mezzanine-users] Form that can be filled only once

2014-02-14 Thread Giovanni Pederiva
hi, i'm trying to make a website for an association, we need to have some 
people apply for a summer school. i'd like to create a form with all the 
data i need to collect from them, but i want also to allow each user to 
submit that form only once. is there a way to do this?  thanks in advance

-- 
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/groups/opt_out.


Re: [mezzanine-users] Form that can be filled only once

2014-02-14 Thread Sam Kingston
Further to what Josh has said, since forms are a core part of Django, have 
a look through the excellent docs they have:

https://docs.djangoproject.com/en/1.6/topics/forms/

The if user has submitted, reject bit is perfect for a form validator.

Good luck

On Saturday, 15 February 2014 08:22:57 UTC+10, Josh Cartmell wrote:

 Hey Giovanni, you definitely can.

 I would require the users to log in, check if the currently logged in use 
 has already submitted the form and if so display a message saying that 
 they've already submitted the form and don't need to again.  Alternatively 
 when a user submits the form you could check some unique piece of submitted 
 data (maybe their name) and if a form submission has already been submitted 
 matching that respond that they have already submitted the form.


 On Fri, Feb 14, 2014 at 1:44 PM, Giovanni Pederiva 
 giovanni...@gmail.comjavascript:
  wrote:

 hi, i'm trying to make a website for an association, we need to have some 
 people apply for a summer school. i'd like to create a form with all the 
 data i need to collect from them, but i want also to allow each user to 
 submit that form only once. is there a way to do this?  thanks in advance
  
 -- 
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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/groups/opt_out.


Re: [mezzanine-users] cartridge - multiple select for product category

2014-02-14 Thread Andrey M
Hi Josh,

The idea is the following.
I'd like to create two main categories with sub categories like
 Category1
   C1.1
   C1.2
 Category2
   C2.1
   C2.2
   C2.3

So, an user can select at the same time, for example (C1.1 and C2.2) or 
(Category1 and C2.3) and etc. However the user should not have an ailbity 
to select C2.1 and C2.2.

If two categories are selected (they should be highlighted in menu) all 
products with both categories selected should be displayed

Regards

понедельник, 10 февраля 2014 г., 21:49:09 UTC+4 пользователь Josh Cartmell 
написал:

 Hey Andrey, I don't think I understand what you are trying to do.  Could 
 you go into some more details about what you want to accomplish?


 On Sat, Feb 8, 2014 at 2:38 AM, Andrey M andrey@gmail.comjavascript:
  wrote:

 Hi All,

 I'd like to make some of my product categories be selectable at the same 
 time.
 I did not find this in cartridge by default.

 Does anyone know available forks including this functionality or a way to 
 implement it with minimum effort?

 Regards

 -- 
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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/groups/opt_out.


[mezzanine-users] How to split menu for categories (first level in top, second and other levels in left menu)

2014-02-14 Thread Andrey M
Hi All,

Could you please advise if it is possible to 'split' menu for Product 
categories?
I'd like to show first level categories in top menu but second (and all 
other) levels are only in left menu.
So when an user selects category in top level menu, only subcategories 
related to this category should be displayed in left menu.
Currenly it doesn't work.

I realize that it is possible to override page_menu tag, views/tempalates 
and do everything needed, however, I do not want to change core mezzanine 
functionality to avoid issues with upgrades later.

Regards

-- 
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/groups/opt_out.


[mezzanine-users] add group item (without dedicated page) to page manu

2014-02-14 Thread Andrey M
Hi All,

Could you please advise if it is possible to add some 'grouping' elements 
(configurable in admin) to categories menu which doesn't have a page inself.
So only grouping menu element if required like the following and without 
overriding core functionality.

 Cat1
   Group1 (no page, no link)
 Cat1.1
 Cat1.2
   Group2 (no page, no link)
 Cat2.1

Regards

-- 
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/groups/opt_out.


Re: [mezzanine-users] cartridge - multiple select for product category

2014-02-14 Thread Josh Cartmell
You could probably do that by creating a page processor for cateogires that
checked for get paramters (the categories that are selected) and added the
right products into the context based on those selections.


On Fri, Feb 14, 2014 at 2:56 PM, Andrey M andrey.s.mas...@gmail.com wrote:

 Hi Josh,

 The idea is the following.
 I'd like to create two main categories with sub categories like
  Category1
C1.1
C1.2
  Category2
C2.1
C2.2
C2.3

 So, an user can select at the same time, for example (C1.1 and C2.2) or
 (Category1 and C2.3) and etc. However the user should not have an ailbity
 to select C2.1 and C2.2.

 If two categories are selected (they should be highlighted in menu) all
 products with both categories selected should be displayed

 Regards

 понедельник, 10 февраля 2014 г., 21:49:09 UTC+4 пользователь Josh Cartmell
 написал:

 Hey Andrey, I don't think I understand what you are trying to do.  Could
 you go into some more details about what you want to accomplish?


  On Sat, Feb 8, 2014 at 2:38 AM, Andrey M andrey@gmail.com wrote:

 Hi All,

 I'd like to make some of my product categories be selectable at the same
 time.
 I did not find this in cartridge by default.

 Does anyone know available forks including this functionality or a way
 to implement it with minimum effort?

 Regards

 --
 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/groups/opt_out.


  --
 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/groups/opt_out.


-- 
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/groups/opt_out.