my settings
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = 'webmaster@vaility'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_FILE_PATH = None
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_PASSWORD = 'lv210493'
EMAIL_HOST_USER = 'setivolkyl...@gmail.com'
EMAIL_PORT = 587
EMAIL_SUBJECT_P
I do not known - Why.
Example page from website:
http://eugenelysenkowebsite.pythonanywhere.com/en/contact_me/about_me/
Example from settings
---
import re
from .base import *
DEBUG = False
ALLOWED_HOSTS = ['eugenelysenkowebsite.pythonanywhere.com']
..
See http://eugenelysenkowebsite.pythonanywhere.com/en/files/video/1/ | not
worked MediaElement, but worked standart HTML VideoPlayer
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from i
*my file with invoke-task (tasks.py)*
.
from invoke import run, task
separeted_line = eval('\'*\'*50')
sample = "\n{0}\n*** Finished: {1} ***\n{0}\n"
@task
def run_stadalone_configure():
command = './manage.py collectstatic --noinput'
Code in ipython
-
In [51]: from django.contrib.auth.models import User
In [52]: User.objects.all()
Out[52]: [, , ]
In [53]: user = User.objects.last()
In [54]: user.is_superuser
Out[54]: True
In [55]: user.f
user.first_name user.from_db user.full_cl
What Alternative Amazon S3 for serve media(uploaded) on website (Heroku
hosting)?
I need only storage for media files because Heroku deleting my files
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop recei
*urlconf:*
from django.conf.urls import url, include, patterns
from django.contrib import admin
from django.views.generic import TemplateView
from django.conf import settings
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name="index.html"), {},
'index'),
url(r'^accounts/',
.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
How include localized_fields in class-based views?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this gro
I need get path to local file in for ImageField.
Next, transfer path to my view thought Ajax request, update in database and
almost all.
I need will make it manually, for my goals.
May be, anyone known how it make?
I am tried already django-ajaximage, Ajaxfileupload and many other, but it
n
my model
.
class Translator(models.Model):
"""
Model for dictionaries tranlations
"""
def dispatch_dictionary_media_files(instance, filename):
return 'app_dictionaries/{0}/{1}'.format(instance.name.__str__(),
filename)
author = models.Foreign
I need choice base url MEDIA_URL (/media/) - for uploaded user picture, or
STATIC_URL (/static/) - picture by default
I am try next:
p>
, but result is MEDIA_URL(STATIC_URL) and path to file.
I am next try:
{% templatetag openvariable %} url 'entry_list' {% templatetag closevariable %}
but
I am solved problem next variant:
in model
--
@property
def account_user_picture(self):
if self.picture:
return self.picture.url
else:
return settings.STATIC_URL +
'project_static/images/default-picture.png'
in templates
--
Just wondering, how in django so few similar things.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this g
I need create link in my admin part of site, for models AccountUser and
AccountUserInfo
--
My models.py
--
import imghdr
import string
import datetime
from django_countries.fields import CountryField
from django.db import models
from django.contr
Diffrent browser supported different types of video/audio files.
Opera supports - only .ogg/ogv
Firefox - only mp3/mp4
Chrome - both that and another
How to choice best solution for saved uploaded files from user in Django
project?
--
You received this message because you are subscribed to th
I had method model that generate dict, sample:
{
'translators': 5,
'glossaries': 1,
'abbrs': 0,
}
I want known, how transfer data without hidden fields in html file. I need
here for generate google-chart.
--
You received this message because you are subscribed to the Google Groups
just wondering
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googl
May be there is something simpler than Ajax request?
четверг, 10 марта 2016 г., 14:20:17 UTC+2 пользователь Sergiy Khohlov
написал:
>
> Ajax ?
> Have you checked this one ?
>
> Many thanks,
>
> Serge
>
>
> +380 636150445
> skype: skhohlov
>
> On Thu, Mar 10, 2016 at 2:18 PM, >
> wrote:
>
>>
I found useful bootstrap-datetimepicker, may be is yet?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to thi
I found useful ajaxform.js, moment.js, jcrop.js may be someone known yet?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.c
I create project with my authuser model where login via email, not through
name
Models.py
import imghdr
import string
import datetime
from django_countries.fields import CountryField
from django.db import models
from django.contr
I found useful bootstrap-datetimepicker, may be someone known yet?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To
I have method model, that will return pie chart on each instance model. But
I so far not found normal django-apps for solving problem with creating
chart on my data.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from t
24 matches
Mail list logo