Re: text editor

2018-09-01 Thread sankar ardhas
Thanks for response.. for Windows?


On Sep 2, 2018 11:21 AM, "RONAK JAIN"  wrote:

> Atom is best editor.
>
> On Sun, 2 Sep 2018, 11:11 a.m. sankar ardhas, 
> wrote:
>
>>
>> Hi to all,
>> Which is the best editor for django framework  in Ubuntu os
>> 18.04
>>
>> Get Outlook for Android 
>>
>>
>>
>>
>> On Sun, Sep 2, 2018 at 1:46 AM +0530, "RONAK JAIN" <
>> jainronak...@gmail.com> wrote:
>>
>> Namaste !!
>>>
>>> Dear ,
>>>
>>> I have two models categories and Project.
>>>
>>>  created like that :
>>>
>>> class Category(models.Model):
>>> categorys = models.ManyToManyField('Category',blank=True)
>>> name = models.CharField(max_length=100)
>>> created_at = models.DateTimeField(auto_now=False, auto_now_add=True)
>>> updated_at = models.DateTimeField(auto_now=True)
>>>
>>>
>>>
>>> class Meta:
>>> verbose_name_plural = "Categories"
>>>
>>> def __str__(self):
>>> return self.name
>>>
>>> def __unicode__(self):
>>> return self.categorys
>>>
>>> class Project(models.Model):
>>> categorys = models.ManyToManyField('Category',blank=True)
>>> name = models.CharField(max_length=100)
>>> description = models.CharField(max_length=100)
>>> created_at = models.DateTimeField(auto_now=False, auto_now_add=True)
>>> updated_at = models.DateTimeField(auto_now=True)
>>> photo = models.ImageField(upload_to="pictures")
>>>
>>>
>>> def __str__(self):
>>> return self.name
>>>
>>> def __unicode__(self):
>>> return self.categorys
>>>
>>> *and Views I did here :*
>>>
>>> *from web.models import Category,Project*
>>>
>>> class Portfolio(TemplateView):
>>> template_name = "web/protfolio.html"
>>>
>>> def post(self, request, *args, **kwargs):
>>> context = self.get_context_data()
>>> return super(TemplateView, self).render_to_response(context)
>>>
>>> def portfolio(request):
>>>   context = RequestContext(request)
>>>   # Project_list = Project.objects.order_by('-likes')[:3]
>>>   # context_dict = {'Project': project_list}
>>>   # return render(template_name, context_dict, context
>>>   brand_list = Category.objects.all()
>>>   return render(template_name, {'brand_list' : brand_list},
>>> context)
>>>
>>> *I need correct relationship both I mean project and categories. How can
>>> I do correct here ? *
>>> Note : I attached picture please analyse briefly.
>>>
>>> How to do approch html page and   I want  the html(view) page should
>>> load from our db.
>>> please give me quickly answer.
>>> How can i do ?
>>>
>>>
>>> Thanks
>>> Ronak
>>>
>>> --
>>> 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.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/django-users/63ecd6f1-411a-4581-b245-296efbd49303%
>>> 40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/39ABAA35669F59A4.eb8de1ab-f7fe-4f09-ac86-ab24def151d1%
>> 40mail.outlook.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CA%2BAqMUcMUft6Wfa_YUzhRshp4vDF4fT5UxfUfUh2XeazH%
> 2BxSxQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message 

Re: text editor

2018-09-01 Thread RONAK JAIN
Atom is best editor.

On Sun, 2 Sep 2018, 11:11 a.m. sankar ardhas, 
wrote:

>
> Hi to all,
> Which is the best editor for django framework  in Ubuntu os
> 18.04
>
> Get Outlook for Android 
>
>
>
>
> On Sun, Sep 2, 2018 at 1:46 AM +0530, "RONAK JAIN"  > wrote:
>
> Namaste !!
>>
>> Dear ,
>>
>> I have two models categories and Project.
>>
>>  created like that :
>>
>> class Category(models.Model):
>> categorys = models.ManyToManyField('Category',blank=True)
>> name = models.CharField(max_length=100)
>> created_at = models.DateTimeField(auto_now=False, auto_now_add=True)
>> updated_at = models.DateTimeField(auto_now=True)
>>
>>
>>
>> class Meta:
>> verbose_name_plural = "Categories"
>>
>> def __str__(self):
>> return self.name
>>
>> def __unicode__(self):
>> return self.categorys
>>
>> class Project(models.Model):
>> categorys = models.ManyToManyField('Category',blank=True)
>> name = models.CharField(max_length=100)
>> description = models.CharField(max_length=100)
>> created_at = models.DateTimeField(auto_now=False, auto_now_add=True)
>> updated_at = models.DateTimeField(auto_now=True)
>> photo = models.ImageField(upload_to="pictures")
>>
>>
>> def __str__(self):
>> return self.name
>>
>> def __unicode__(self):
>> return self.categorys
>>
>> *and Views I did here :*
>>
>> *from web.models import Category,Project*
>>
>> class Portfolio(TemplateView):
>> template_name = "web/protfolio.html"
>>
>> def post(self, request, *args, **kwargs):
>> context = self.get_context_data()
>> return super(TemplateView, self).render_to_response(context)
>>
>> def portfolio(request):
>>   context = RequestContext(request)
>>   # Project_list = Project.objects.order_by('-likes')[:3]
>>   # context_dict = {'Project': project_list}
>>   # return render(template_name, context_dict, context
>>   brand_list = Category.objects.all()
>>   return render(template_name, {'brand_list' : brand_list},
>> context)
>>
>> *I need correct relationship both I mean project and categories. How can
>> I do correct here ? *
>> Note : I attached picture please analyse briefly.
>>
>> How to do approch html page and   I want  the html(view) page should load
>> from our db.
>> please give me quickly answer.
>> How can i do ?
>>
>>
>> Thanks
>> Ronak
>>
>> --
>> 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.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/63ecd6f1-411a-4581-b245-296efbd49303%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/39ABAA35669F59A4.eb8de1ab-f7fe-4f09-ac86-ab24def151d1%40mail.outlook.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BAqMUcMUft6Wfa_YUzhRshp4vDF4fT5UxfUfUh2XeazH%2BxSxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-01 Thread sankar ardhas



Hi to all, 


    Which is the best editor for django framework  in Ubuntu os 18.04




Get Outlook for Android







On Sun, Sep 2, 2018 at 1:46 AM +0530, "RONAK JAIN"  
wrote:










Namaste !!
Dear ,
I have two models categories and Project.
 created like that :
class Category(models.Model):    categorys = 
models.ManyToManyField('Category',blank=True)    name = 
models.CharField(max_length=100)    created_at = 
models.DateTimeField(auto_now=False, auto_now_add=True)    updated_at = 
models.DateTimeField(auto_now=True)


    class Meta:        verbose_name_plural = "Categories"
    def __str__(self):        return self.name
    def __unicode__(self):        return self.categorys
class Project(models.Model):    categorys = 
models.ManyToManyField('Category',blank=True)    name = 
models.CharField(max_length=100)    description = 
models.CharField(max_length=100)    created_at = 
models.DateTimeField(auto_now=False, auto_now_add=True)    updated_at = 
models.DateTimeField(auto_now=True)    photo = 
models.ImageField(upload_to="pictures")

    def __str__(self):        return self.name
    def __unicode__(self):        return self.categorys
and Views I did here :
from web.models import Category,Project
class Portfolio(TemplateView):    template_name = "web/protfolio.html"
    def post(self, request, *args, **kwargs):        context = 
self.get_context_data()        return super(TemplateView, 
self).render_to_response(context)        def portfolio(request):          
context = RequestContext(request)          # Project_list = 
Project.objects.order_by('-likes')[:3]          # context_dict = {'Project': 
project_list}          # return render(template_name, context_dict, context     
     brand_list = Category.objects.all()          return render(template_name, 
{'brand_list' : brand_list}, context)
I need correct relationship both I mean project and categories. How can I do 
correct here ? Note : I attached picture please analyse briefly.
How to do approch html page and   I want  the html(view) page should load from 
our db.please give me quickly answer.How can i do ?

ThanksRonak





-- 

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.

Visit this group at https://groups.google.com/group/django-users.

To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/63ecd6f1-411a-4581-b245-296efbd49303%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.






-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/39ABAA35669F59A4.eb8de1ab-f7fe-4f09-ac86-ab24def151d1%40mail.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django templates render

2018-09-01 Thread Jason
I'm sorry, I have no idea what you're trying to do.  what exactly is 
correct relationship and what is different from the render output that you 
desire?

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3136ddd9-b931-40c6-b7bf-9c4834e0e23a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: __init__.py Won't Upload To Github Respository

2018-09-01 Thread Stephen J. Butler
GitHub has an excellent set of gitignore files. My first commit to a
project is always one of these:

https://github.com/github/gitignore

In particular:
https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore


On Sat, Sep 1, 2018 at 10:52 AM Kasper Laudrup 
wrote:

> Hi Sandy,
>
> On 01/09/2018 17.18, Sandy Leon wrote:
> > Hello everyone,
> > I am trying to upload my Django site files to github to then deploy with
> > Heroku.
> > I have had no major problems except in trying to upload the folder that
> > contains my Django site, github gets stuck on trying to upload '
> > /mysite/polls/__pycache__/__init__.cpython-36.pyc'
> > Just to be clear, my project is called 'mysite' and the app that I made
> > following the Django tutorial is called polls.
> > Thanks you in advance to anyone who can help.
> >
>
> I have no idea why you are not able to upload these files, but you
> shouldn't be uploading cache files or compiled python modules to you git
> repository anyway.
>
> If you have any of these files in your local git repository, remove them
> using "git rm".
>
> Something like:
>
> # find -name __pycache__ -exec git rm -r {} \;
>
> And:
>
> # find -name *.pyc -exec git rm {} \;
>
> Ought to do it.
>
> Then commit these changes with something like:
>
> # git commit -m "Remove cache and object files from repository"
>
> Finally add cache and compiled object files to you .gitignore. Something
> like:
>
> *.pyc
> __pycache__
>
> And try to push your changes again.
>
> Be aware that I have not actually tested any of these commands, so
> please be careful before blindly executing them.
>
> Hope that helps a bit.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/12e119ed-9ffe-d30a-2f88-71f8c70c37dd%40stacktrace.dk
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD4ANxVoJg7y9%2B6jga5PSpCR%3Dc0hGy6F2DBTqDY%3Di9nO7RVv7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: creating virtualenv for django but i get import zlib module error what could be the problem

2018-09-01 Thread Alexander Holmback
does it work if you run sudo apt install zlib1g-dev?

On Saturday, September 1, 2018 at 3:31:39 PM UTC+2, Lutalo Bbosa joseph 
wrote:
>
> raceback (most recent call last):
>   File "/usr/local/bin/virtualenv", line 9, in 
> load_entry_point('virtualenv==15.0.1', 'console_scripts', 
> 'virtualenv')()
>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
> 542, in load_entry_point
> return get_distribution(dist).load_entry_point(group, name)
>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
> 2569, in load_entry_point
> return ep.load()
>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
> 2229, in load
> return self.resolve()
>   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
> 2235, in resolve
> module = __import__(self.module_name, fromlist=['__name__'], level=0)
>   File "/usr/lib/python3/dist-packages/virtualenv.py", line 1993, in 
> 
> """)
>   File "/usr/lib/python3/dist-packages/virtualenv.py", line 1848, in 
> convert
> return zlib.decompress(b).decode('utf-8')
> NameError: name 'zlib' is not defined
>
>

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ecfc839e-780b-4dd2-a2ee-5894a46932e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Channels - core.py error

2018-09-01 Thread itsnate_b
I do not think it is even getting to the point where I can accept the 
connection from within the consumers.pyand I'm not sure how to get a 
better traceback than the one I already provided.

On Saturday, September 1, 2018 at 1:20:16 PM UTC-4, itsnate_b wrote:
>
>
> Hi Marius,
> Thanks for the recommendation. Yes, I am using channel layers outside of 
> consumers, however, this has not been an issue in the past. I am not clear 
> on what you mean by "virtualenv best practices"? Yes, this is running in a 
> venv, and it has worked in the past. I do think this issue is somehow 
> driven by my setup..although any suggestions are welcome!
>
> My setup:
> app1/
> ...AsyncWebsocketConsumer (consumers.py)
> ...AsyncConsumer (backgroundTask.py)
> ..a couple other function files that call the get_channel_layer to send to 
> a group
> app2/
> ...same idea
>
> On Saturday, September 1, 2018 at 9:40:10 AM UTC-4, Marius Räsener wrote:
>>
>> Hey, my guess is to check redis integration, f.e. like mentioned here at 
>> the bottom (outside of consumers): 
>> https://channels.readthedocs.io/en/latest/topics/channel_layers.html 
>>
>> next guess, since an unintended lock feels rather basic to me is to make 
>> sure you‘re still following the virtualenv best practices? No Idea if 
>> that’s worth mentioning or already clear but to be sure... 
>>
>> Good luck
>
>

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/945d172f-d505-4175-90e1-c4ccc5c53a9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Channels - core.py error

2018-09-01 Thread itsnate_b

Hi Marius,
Thanks for the recommendation. Yes, I am using channel layers outside of 
consumers, however, this has not been an issue in the past. I am not clear 
on what you mean by "virtualenv best practices"? Yes, this is running in a 
venv, and it has worked in the past. I do think this issue is somehow 
driven by my setup..although any suggestions are welcome!

My setup:
app1/
...AsyncWebsocketConsumer (consumers.py)
...AsyncConsumer (backgroundTask.py)
..a couple other function files that call the get_channel_layer to send to 
a group
app2/
...same idea

On Saturday, September 1, 2018 at 9:40:10 AM UTC-4, Marius Räsener wrote:
>
> Hey, my guess is to check redis integration, f.e. like mentioned here at 
> the bottom (outside of consumers): 
> https://channels.readthedocs.io/en/latest/topics/channel_layers.html 
>
> next guess, since an unintended lock feels rather basic to me is to make 
> sure you‘re still following the virtualenv best practices? No Idea if 
> that’s worth mentioning or already clear but to be sure... 
>
> Good luck

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/de71f291-c34d-44d9-a68d-ce8420ca9bb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: __init__.py Won't Upload To Github Respository

2018-09-01 Thread Sandy Leon
I am removing the files as you suggested. I am having a bit of trouble with 
'git commit' at the moment as it keeps crashing haha. I should be able to 
resolve it on my own, thanks again for your help.
On Saturday, September 1, 2018 at 11:18:02 AM UTC-4, Sandy Leon wrote:
>
> Hello everyone,
> I am trying to upload my Django site files to github to then deploy with 
> Heroku.
> I have had no major problems except in trying to upload the folder that 
> contains my Django site, github gets stuck on trying to upload '
> /mysite/polls/__pycache__/__init__.cpython-36.pyc'
> Just to be clear, my project is called 'mysite' and the app that I made 
> following the Django tutorial is called polls.
> Thanks you in advance to anyone who can help.
>

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b6b30de8-9eff-40c9-86c8-3ce47b58e24f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: __init__.py Won't Upload To Github Respository

2018-09-01 Thread Kasper Laudrup

Hi Sandy,

On 01/09/2018 17.18, Sandy Leon wrote:

Hello everyone,
I am trying to upload my Django site files to github to then deploy with
Heroku.
I have had no major problems except in trying to upload the folder that
contains my Django site, github gets stuck on trying to upload '
/mysite/polls/__pycache__/__init__.cpython-36.pyc'
Just to be clear, my project is called 'mysite' and the app that I made
following the Django tutorial is called polls.
Thanks you in advance to anyone who can help.



I have no idea why you are not able to upload these files, but you 
shouldn't be uploading cache files or compiled python modules to you git 
repository anyway.


If you have any of these files in your local git repository, remove them 
using "git rm".


Something like:

# find -name __pycache__ -exec git rm -r {} \;

And:

# find -name *.pyc -exec git rm {} \;

Ought to do it.

Then commit these changes with something like:

# git commit -m "Remove cache and object files from repository"

Finally add cache and compiled object files to you .gitignore. Something 
like:


*.pyc
__pycache__

And try to push your changes again.

Be aware that I have not actually tested any of these commands, so 
please be careful before blindly executing them.


Hope that helps a bit.

Kind regards,

Kasper Laudrup

--
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/12e119ed-9ffe-d30a-2f88-71f8c70c37dd%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


__init__.py Won't Upload To Github Respository

2018-09-01 Thread Sandy Leon
Hello everyone,
I am trying to upload my Django site files to github to then deploy with 
Heroku.
I have had no major problems except in trying to upload the folder that 
contains my Django site, github gets stuck on trying to upload '
/mysite/polls/__pycache__/__init__.cpython-36.pyc'
Just to be clear, my project is called 'mysite' and the app that I made 
following the Django tutorial is called polls.
Thanks you in advance to anyone who can help.

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/22b56244-ac3c-4419-b49f-cfc8b638c03e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error with file paths using mod_wsgi-express

2018-09-01 Thread Joel Mathew
If I run mod_wsgi-express from within the directory
/home/joel/myappointments, with the command:
mod_wsgi-express start-server --document-root ./htdocs wsgi.py --user
www-data --group www-data --port 80 --host myopip.com

It works fine. Everything loads. static files load correctly. But of
course this is terminated along with the shell.

However if I setup the script with:
mod_wsgi-express setup-server --document-root
/home/joel/myappointments/htdocs /home/joel/myappointments/wsgi.py
--user www-data --gro www-data --port 80 --host myopip.com

and then start it with:
/etc/mod_wsgi-express-80/apachectl start

Then, static files are not being loaded.
How can I fix this issue?

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA%3Diw_-kY%2B-3Lzwo%3DqL5Rp0B8E9-3Q7eUdp8rPDy7TAgwtK-4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django Channels - core.py error

2018-09-01 Thread Marius Räsener
Hey, my guess is to check redis integration, f.e. like mentioned here at the 
bottom (outside of consumers):
https://channels.readthedocs.io/en/latest/topics/channel_layers.html

next guess, since an unintended lock feels rather basic to me is to make sure 
you‘re still following the virtualenv best practices? No Idea if that’s worth 
mentioning or already clear but to be sure...

Good luck

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/075f20c5-3cc1-4a08-9480-62ac020f7ece%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


creating virtualenv for django but i get import zlib module error what could be the problem

2018-09-01 Thread Lutalo Bbosa joseph
raceback (most recent call last):
  File "/usr/local/bin/virtualenv", line 9, in 
load_entry_point('virtualenv==15.0.1', 'console_scripts', 
'virtualenv')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
2569, in load_entry_point
return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
2229, in load
return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 
2235, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 1993, in 

""")
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 1848, in convert
return zlib.decompress(b).decode('utf-8')
NameError: name 'zlib' is not defined

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/44266161-c188-45e9-9b91-94901b7d8232%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How can I get back my English pages (multi-lingual site updated from en to en-us)

2018-09-01 Thread Leo Treasure
Hello,

I've needed to update the settings.py file LANGUAGE_CODE = 'en' to 'en-us' 
which has resulted in the English pages becoming empty.

I've been told by my host that there maybe an SQL command I need to run to 
change the languages for the previously created pages over to en-us.

Can someone help me with this please?

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/086037f5-08b3-4816-85c1-82d22e03be70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot find static files when using mod_wsgi and apache

2018-09-01 Thread Jason
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/modwsgi/#serving-files

Note the  bit

>
>

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/448a33e4-5e09-427f-92ed-156781dddcc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Ldap for django

2018-09-01 Thread Vineet Kothari
Please Don, t use rude languages friend... Sent from my Huawei Mobile Original Message Subject: Re: Ldap for djangoFrom: vineeth sagar To: django-users@googlegroups.comCC: Wow Vineet Kothari very insightful, why do you have to be a dick?On Aug 31, 2018 9:57 PM, "Vineet Kothari"  wrote:It is not lodap is ldapSent from my Huawei Mobile Original Message Subject: Ldap for djangoFrom: soumyajit banerjee To: Django users CC: Hi,I am new in django python. I want to set up lodap authentication for my django app. Could you please help me. I am using python 3.6 with django 2.1



-- 
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/73bd4a1c-86d8-4763-90d7-b7415fec992c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.




-- 
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/-nsggnw31f0154qz1l9-p4sxo1jkikmy-gx1x3hec6xce-9rcgqo-axqdp5y85rvjsfpr41jveqvhp3fxin-of4z78-w3oew795cdywcydz51tim2qu-c546dg-vr5rvajbx5e5gavqmax8lpqg-vxozcx.1535732867097%40email.android.com.
For more options, visit https://groups.google.com/d/optout.




-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMMZq8MfGQiBdEpN005uEEf%3D58p5YuASLWtKX5CuW3JuqohFmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.




-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/yklpwx5t8tg1lj8u9tgq4lmm-9yoazk-pai9ikhjfnc9-lo014i-hda3je-nvb47-v2ez43uxz4q8-qotdhyoz00ywvlxxwldlsefjo1gfdwjy2w48-2aygemh7qzc-nsqaqt9fgr5w8izvixp2ou8o.1535796001572%40email.android.com.
For more options, visit https://groups.google.com/d/optout.