by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Iacopo Spalletti
    @yakky
    I'm interested in hearing suggestions and ideas for implementation
    Alessandro Rubeo
    @alessandro87_gitlab
    Hello, I wanted to know if it is possible to filter the posts to show on the blog only those with a past publish date. Now if I create a post inserting a future date on the published_date field, it shows in the blog posts list, and in the category post list. Thank you so much
    Ashutosh_Gajankush
    @agajankush
    Hi, This is awesome a Gitter channel.
    I added djangocms-blog in my Cms application was wondering if we can add custom placeholders in blogs so that I can add custom pictures or plugins.
    Iacopo Spalletti
    @yakky
    @agajankush blog post has a single placeholder where you can add any plugin you need. if you need multiple placeholders you can have a look at static placeholders (http://docs.django-cms.org/en/latest/introduction/02-templates_placeholders.html#static-placeholders), but adding different static placeholder for each post is a bit hackish
    @alessandro87_gitlab this should already be the case. the published manager method ensure that only posts with start date in the past are shown. Be aware that as admin in edit mode, you will see all the future published post (by design) to ensure you can reach them. But as anonymous user you should only see "past" published posts, if this is not the case, it's definitely a bug
    Ashutosh_Gajankush
    @agajankush
    @yakky I want only one placeholder in the main blog page where all the blogs are listed.
    Basically I need to create 2 columns with blog on one side and the other column will house the Placeholders where the user can add stuff they want.
    Iacopo Spalletti
    @yakky
    @agajankush in that case you can use django cms' static placeholders, which are made exactly for your use case
    you only need to customize the post_list.html template (https://github.com/nephila/djangocms-blog/blob/develop/djangocms_blog/templates/djangocms_blog/post_list.html) to fit your design
    Ashutosh_Gajankush
    @agajankush
    image.png
    Look at that Thank you @yakky
    Iacopo Spalletti
    @yakky
    :top:
    you're welcome :)
    Ashutosh_Gajankush
    @agajankush
    For anyone if they want to add custom placeholders this is the way I did it
    Include cms_tags in the load section like this
    image.png
    Then just add the placeholder on the page wherever you want,
    image.png
    Ashutosh_Gajankush
    @agajankush
    @yakky I have another question can we filter or change the user selection for a blog post?
    Ashutosh_Gajankush
    @agajankush
    I am working on project with multisites and users are linked to each site so I don't want to show all the users for all the sites
    Iacopo Spalletti
    @yakky
    @agajankush you mean in the admin? It's doable but there is currently no hook to do that, you must extend the admin and adapt PostAdminForm.
    Ashutosh_Gajankush
    @agajankush
    Yeah in the admin section. I went that route but thought of asking if there is a way that you guys have designed. Nvm thank you.
    Ashutosh_Gajankush
    @agajankush
    image.png
    Getting this error when I try to upload an image in djangocms_text_ckeditor
    Amrizhan
    @Amrizhan
    Hi!! Who can share his template on aldryn people??? default templates is really useless
    Danny Waser
    @wasertech_gitlab
    Hi @Amrizhan, since every website is different, django CMS (or even django) applications will only give you basic templates to work with. It is your role to make those templates work with your particular website. If don't have any particularly good HTML/CSS skills, this task can prove to be difficult. I suggest you to start from an already existing design. You can find plenty of HTML templates on the web. My advice is to start with Bootstrap 4 templates as it's easier to start with. I like to use Cololib's templates as they are free to experiment with and only cost USD 21.- once you are ready to remove the copyrights inside the footer. If you don't want to adapt those templates for your website, you can checkout my implementation of Colorlib's template on my website. Hope this helps you. Have a nice experience using django CMS !
    pablojr1971
    @pablojr1971

    Hi!
    On my laptop I'm building a Django CMS site. It has a few pages, including one with an instance of djangocms-blog.
    When I try to deploy it to Heroku, after I do the schema migrations I can see there is no data related to the djangocms-blog.
    I must be missing something as I'm just starting with django CMS.

    How do I migrate the data of my CMS pages and the rest, to my production environment in Heroku?
    I tried looking into the docs but I couldnt find anything. Does this mean I have to use DIVIO?

    Thanks in advance for your help

    Danny Waser
    @wasertech_gitlab
    Hello @pablojr1971, your production environment (your Heroku server) is something completely different from your development environment (your laptop). Generally, you should use more robust databases in production such as PostgreSQL for exemple, while in development you might want to use a simple mySQL database inside a file. In other words, what is in your development website is not what's on your real production website. You'll have to recreate what you have already made in development. There are various tools for exporting your Django-CMS plugins in JSON format to export it easily from one Django-CMS server to another. You should checkout djangocms-transfer if you have already a lot of data inside your development server. Hope this helps. Have fun with Django CMS ! EDIT: You can also create your production database from the development's one, but since you're new to Django(-CMS), I wouldn't recommend that you do so as it can be tricky.
    pablojr1971
    @pablojr1971
    Thank you @wasertech_gitlab !
    In case somebody is interested, this is what worked for me
    https://stackoverflow.com/a/62570272/2510389
    Mark Walker
    @markwalker__twitter

    Hello, I'm looking at putting together a CMS project with multi-site support. I've setup lots of CMS projects, but never with multiple sites from the same system.
    What's the status of djangocms-multisite?

    The dynamic SITE_ID is the kind of approach we're looking for to make things as dynamic as possible. The ultimate goal being to add a Client object to the database & their site start working without having to change the django project.

    Iacopo Spalletti
    @yakky
    Hi @markwalker__twitter while a little behing on the maintenance side due to the lack of time, djangocms-multisite is working fine for us on some production websites
    we have not used it for massive deployments with many sites to it (IIRC our max is 3), but we have not had any concurrency issues, so it should be fine with larger setups
    Mark Walker
    @markwalker__twitter
    Thanks @yakky
    We're not looking at a particularly large setup yet (unless sales go very well!!). What we want is an easy to maintain system which offers flexibility and lower server costs than what we've been doing lately by setting up very specific applications each with their own stack.
    Do you think it'll work on a 2.2 site? The repo says support for 1.11, but I've not looked at how it's setup yet to see if 2.2 is a no-go.
    Iacopo Spalletti
    @yakky
    there is a PR to make it work on django 2.2 (nephila/djangocms-multisite#27), but it needs some polishing before merge
    I might have some time to give this repo some love early next week with the kid on vacation :)
    I should be able to release a version tested on Django 2.2 / 3
    In a few days
    and it would be awesome to have more feedback on it
    Mark Walker
    @markwalker__twitter
    Fantastic, thanks again for you help @yakky
    I'll hold fire on putting this app into the site at the moment then & we'll start with a more basic approach with environment variables. I'll put a watcher on releases
    Iacopo Spalletti
    @yakky
    stay tuned :D
    Mark Walker
    @markwalker__twitter
    A guy I work with was keen to start trying out CMS & pushing code so I tried to install that PR, found some issues & thought I'd make some fixes, drop some old python & I ended up with a new PR worthy fork; nephila/djangocms-multisite#29
    Iacopo Spalletti
    @yakky
    I'm currently on the move, I will check it later, but it looks like you saved me quite a bit of work :)
    🎉
    Mark Walker
    @markwalker__twitter
    No problem. :joy:
    Iacopo Spalletti
    @yakky
    T first glance it seems I can just merge it and ship it in a new version straight away 🙇‍♂️
    Mark Walker
    @markwalker__twitter
    Yeah in theory it's good to go. I didn't bump version because I didn't know what you'd want to do with that, but I updated the setup & readme supported versions so not much left after there I suppose
    Iacopo Spalletti
    @yakky
    Yes, I saw that. I prefer to bump the version myself, I want to check if there are more easy things in the backlog that I can ship in the new version. But I will release a new version during the weekend with your pr as a minimum
    Iacopo Spalletti
    @yakky
    @markwalker__twitter djangocms-multisite 0.3.0 released :)
    thanks a lot for your contribution!
    (biggest thing still missing is a proper documentation)
    Mark Walker
    @markwalker__twitter
    Thanks @yakky
    I can see that on github, but not on pypi; https://pypi.org/project/djangocms-multisite/
    Iacopo Spalletti
    @yakky
    @markwalker__twitter apparently there are some rst errors in the readme which prevented the pypi update :eyes: fixing soon
    Iacopo Spalletti
    @yakky
    0.3.1 is out on pypi :)
    Mark Walker
    @markwalker__twitter
    Thanks. I had a problem migrating from an empty database thanks to django-multisite template loader.
    If their loader is left out for the initial migration it works, but that's a nightmare to manage, so I've setup a PR for that project as well.