Skip to content

Commit

Permalink
unicode urls added.
Browse files Browse the repository at this point in the history
  • Loading branch information
AliYmn committed Feb 5, 2017
1 parent acf8dbe commit 2c44f10
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
4 changes: 3 additions & 1 deletion DjangoBlog/settings.py
Expand Up @@ -178,4 +178,6 @@
#Api Key
DISQUS_API_KEY = 'ApiKey'
#Subdomain
DISQUS_WEBSITE_SHORTNAME = 'aliyaman'
DISQUS_WEBSITE_SHORTNAME = 'aliyaman'
#Sıte ID, admin panelden sites bölümden bilgileri değişin.
SITE_ID = 1
4 changes: 2 additions & 2 deletions blog/models.py
Expand Up @@ -94,7 +94,7 @@ def get_absolute_url(self):
return "/{}".format(self.url)

def save(self, *args, **kwargs):
self.url = slugify(self.title)
self.url = slugify(self.title,allow_unicode=False)
super(Post, self).save(*args, **kwargs)

class SiteInfo(models.Model):
Expand Down Expand Up @@ -122,7 +122,7 @@ class SiteInfo(models.Model):
format='JPEG',
processors=[ResizeToFill(870, 382)],
options={'quality': 40},verbose_name="Default Resim",
help_text="Büyük resim yükleyin.",blank=True)
help_text="Büyük resim yükleyin.")

class Meta:
verbose_name_plural = "Site Bilgileri"
Expand Down
4 changes: 2 additions & 2 deletions staticfiles/ckeditor/ckeditor/plugins/autosave/plugin.js
Expand Up @@ -16,7 +16,7 @@
init: function (editor) {
// Default Config
var defaultConfig = {
delay: 10,
delay: 60,
messageType: "notification",
saveDetectionSelectors: "a[href^='javascript:__doPostBack'][id*='Save'],a[id*='Cancel']",
saveOnDestroy: false,
Expand Down Expand Up @@ -96,7 +96,7 @@

var startTimer = function (configAutosave, editorInstance) {
if (editorInstance.config.autosave_timeOutId == null) {
var delay = configAutosave.delay != null ? configAutosave.delay : 10;
var delay = configAutosave.delay != null ? configAutosave.delay : 60;
editorInstance.config.autosave_timeOutId = setTimeout(function() {
onTimer(configAutosave, editorInstance);
},
Expand Down
4 changes: 2 additions & 2 deletions templates/about.html
Expand Up @@ -106,8 +106,8 @@ <h4>Yeteneklerim</h4>

HTML + CSS
<div class="progress">
<div class="progress-bar progress-bar-theme" role="progressbar" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100" style="width: 95%;">
<span class="sr-only">95% Complete</span>
<div class="progress-bar progress-bar-theme" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: 50%;">
<span class="sr-only">50% Complete</span>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion templates/base.html
Expand Up @@ -41,7 +41,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{% url 'home-list' %}"><i class="fa fa-rocket" aria-hidden="true"></i> {% site_title %} | {% site_slogan %}</a>
<a class="navbar-brand" href="{% url 'home-list' %}"><i class="fa fa-rocket" aria-hidden="true"></i> {% site_title %}</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
Expand Down
5 changes: 3 additions & 2 deletions templates/post.html
Expand Up @@ -2,6 +2,7 @@
{% load static %}
{% load blog_tags %}


{% block title %}{{ post_obj.title }} - Kişisel Blog{% endblock %}
{% block meta_title %}{{ post_obj.title }}{% endblock %}
{% block description %}{{ post_obj.description }}{% endblock %}
Expand Down Expand Up @@ -29,9 +30,9 @@
<!-- +++++ Projects Section +++++ -->
<div class="container pt ">
<div class="row mt">
<div class="col-lg-12 col-lg-offset-0 centered">
<div class="col-lg-12 col-lg-offset-0">
<div class="col-sm-12"><a href="/{{ post_obj.url }}" class=""><img src="{{ post_obj.image.url }}" class="img-responsive"></a></div>
<h3>{{ post_obj.title }}</h3>
<center><h3>{{ post_obj.title }}</h3></center>
<hr>
{{ post_obj.content | safe }}
</div>
Expand Down
7 changes: 0 additions & 7 deletions templates/robots.html
@@ -1,15 +1,8 @@
User-agent: *
<br>
Disallow: /admin/
<br>
Disallow: /*ref=*
<br>
Disallow: /*?ref=*
<br>
Disallow: /?ref=*
<br>
Disallow: *?replytocom
<br>
Sitemap: http://aliyaman.org/sitemap_post.xml
<br>
Sitemap: http://aliyaman.org/sitemap_category.xml

0 comments on commit 2c44f10

Please sign in to comment.