These are chat archives for django/django

14th
Apr 2017
MBijman
@MBijman
Apr 14 2017 08:22
@koderNeptune take a look at https://disqus.com/
They started out with django, they have really cool stuff for comments.
MBijman
@MBijman
Apr 14 2017 08:32
@ikhahmedov The solution to your problem is simpler then you think. Google does crawl javascript https://webmasters.googleblog.com/2014/05/understanding-web-pages-better.html. But other search platform crawler my not, and to get high ranking with google crawlers on your SPA you need to adhere to some rules. A better solution is to have 2 versions of you website. One static version with plain html, and your SPA for all clients that do support javascript.
cs89gr
@cs89gr
Apr 14 2017 09:02

hello how to get the image url from this html form in my views.py :

                <form class="" action="" method="post" enctype="multipart/form-data">
            {% csrf_token %}
                    <select name="carlist">
                        {% for photo in photos %}
                          <option value="{{ photo.upload.file.url }}">{{ photo.upload.file.name }}</option>
                        {% endfor %}
                        </select>
            <input type="submit" name="" value="Submit">
          </form>

first time play with html form that form is good or i need other ?

Miracle Ayodele
@iammiracle
Apr 14 2017 18:26
@federicojm_twitter @BosnaZmaj @MBijman thanks for your reply, i think i will go with disqus then