How do I post my website on craigslist?

What are good ways to allow users to post their own product's page on another page such as a product-category page by giving them permissions on my Django-powered website which is similar to Craigslist?

  • Hello, now I'm creating a marketplace website such as Craigslist. I'd like to make "post-forms" for users to post their own product information (by uploading photos, adding forms (name, price,condition,,etc.)) on my website' category-page(such as : http://bakersfield.craigslist.org/ata/ ). Now,  I think I can do these things by making use of "Django Permission", but is it correct? If so, how can I do that? Or if not,  there are other ways to allow users to do these things ? The short summary of my website is like below. Specifically,I'd like to know how to allow people to post their products on the category page(this is the best example : http://bakersfield.craigslist.org/ata/) 1. Register & Login 2. You would have several categories such as furniture, books, games,,, and then, click one of those categories. (I've created this category-page by using "Django admin") (eg. ) http://bakersfield.craigslist.org/ 3. Then, you can see what kinds of goods are sold on that category page. And then, At the top of website, you can find "Post" button to post our products on the top of my website (eg. ) http://bakersfield.craigslist.org/ata/ After click that button, we can find "Posting title" "Price" and "upload photos" or some other forms. (eg) https://post.craigslist.org/k/7vg-4JYf4hGJJuYKawjKgw/IXiEj?s=edit 4. Afte filled in those forms, then click "submit" button to post your products pages' link to category page. (eg) http://bakersfield.craigslist.org/ata/ Craigslist is the best example for my website.

  • Answer:

    I think you need to frame your question a little bit more clearly. When you say you want to allow people to create their own product pages and if django has the system to give users those permissions, then are you referring to the django admin site? If you are referring to the admin site, then yes there is a provision where you can do that. Django has this permission framework where you can add a particular type of users to a particular group and then grant specific permissions to this group. Check out this https://docs.djangoproject.com/en/dev/topics/auth/#permissions You can give create, change and delete permissions. But if you are creating a market place like eBay then I don't think you should really be exposing the admin website to the normal user, even if you have all checks and balances. And if that's not what you meant then I don't really understand your question. You want to allow people to create their pages, so its just like profile so that everybody has their profile. And then you have forms where they can add products, upload pictures and so on. That is standard website django development. Django makes the process easier but then the question is not Django specific. Django has this excellent Class based views where the work involved in making forms for creating new objects and then editing them is very easy. https://docs.djangoproject.com/en/dev/topics/class-based-views/ Hope it helps you.

Sachin Gupta at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.