Re: text editor

2018-09-02 Thread Kasper Laudrup




On 02/09/2018 07.50, RONAK JAIN wrote:

Atom is best editor.



No, no, no. Everyone knows emacs is the best editor.

--
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/5cd2fd77-b0f7-49c4-c2dc-74f87f17609c%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: Django templates render

2018-09-02 Thread Kasper Laudrup

Hi Ronak,

On 02/09/2018 08.24, RONAK JAIN wrote:

Thanks for reply
Firar of all i need here I want to make relation between projects and
categories.
You can look attached HTML page picture  there categories parts three
attributes digital, print or branding and projects are there show pictures
or pictures name.


It is very hard to understand exactly what you mean. Have you followed 
the django starter tutorial:


https://www.djangoproject.com/start/


1. How can I make expect relation between in models ?


By using Django models I guess?

https://docs.djangoproject.com/en/2.1/topics/db/models/


2. How can i do HTML page should load from our db ?



By using Django views and templates I guess?

https://docs.djangoproject.com/en/2.1/topics/http/views/

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/5314efa6-42ab-ae24-e58b-0f781ee1923c%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread RONAK JAIN
can you come on Skype or teamviewer.

Thanks
Ronak Jain

On Sun, Sep 2, 2018 at 3:04 PM Kasper Laudrup  wrote:

>
>
> On 02/09/2018 07.50, RONAK JAIN wrote:
> > Atom is best editor.
> >
>
> No, no, no. Everyone knows emacs is the best editor.
>
> --
> 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/5cd2fd77-b0f7-49c4-c2dc-74f87f17609c%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/CA%2BAqMUcp3KKdy87pgoqTzXoVZEFnvYaLr_gRJQK4dmyk9KUQOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread 'Vinod Kumar' via Django users
Pycharm is best for Django..

On Sun, Sep 2, 2018, 11:11 AM 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.
>

-- 









This e-mail and all attachments are intended solely for use by
the intended 
recipient and may contain confidential / proprietary information
of 
KiwiTech, LLC, subject to important disclaimers and conditions including

restrictions on the use, disclosure, transfer or export of such 
information. If you have received this
message in error or are not the 
named recipient(s), please immediately notify
the sender at the telephone 
number stated above or by reply e-mail and delete
this e-mail from your 
computer





-- 
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.goo

Re: text editor

2018-09-02 Thread Wira Bhakti
Vim is good editor

On Sun, 2 Sep 2018 16:34 Kasper Laudrup,  wrote:

>
>
> On 02/09/2018 07.50, RONAK JAIN wrote:
> > Atom is best editor.
> >
>
> No, no, no. Everyone knows emacs is the best editor.
>
> --
> 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/5cd2fd77-b0f7-49c4-c2dc-74f87f17609c%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/CAJko4_q-Ls3vHqyS3U%3DC6YAHzgobkU2Z4GsAiYryHNc5dS1Zzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread Kasper Laudrup

Hi Ronak,

On 02/09/2018 11.48, RONAK JAIN wrote:

can you come on Skype or teamviewer.



No, why?

So we can continue a flamewar over which text editor is the best? :-)

Mentioning Emacs was mostly a joke. Which editor is the "best" is highly 
subjective.


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/8ab43757-62a8-2b8a-99e5-25091088e8b3%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread vishal sharma
Hi All,
How to upload files back to node server. I am new in ApI I am using the
Django where I am downloading files from node server and will process
videos files once processing will be done will upload videos back to server.
Also, How to work with internal files in Django I am running my script
locally it is working fine but when I am running these script in Django I
am getting an error.
Can somebody help and advise ?

Thanks,
Vishal

On Sun, 2 Sep 2018 at 5:13 PM, Kasper Laudrup  wrote:

> Hi Ronak,
>
> On 02/09/2018 11.48, RONAK JAIN wrote:
> > can you come on Skype or teamviewer.
> >
>
> No, why?
>
> So we can continue a flamewar over which text editor is the best? :-)
>
> Mentioning Emacs was mostly a joke. Which editor is the "best" is highly
> subjective.
>
> 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/8ab43757-62a8-2b8a-99e5-25091088e8b3%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/CADdVhnYn3k2vgGPtFvtmtX8h0fCPw97G9_LZutq4bbLzE7FRwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread Kasper Laudrup

Hi Vishal,

On 02/09/2018 13.48, vishal sharma wrote:

Hi All,
How to upload files back to node server. I am new in ApI I am using the
Django where I am downloading files from node server and will process
videos files once processing will be done will upload videos back to server.


So, if I understand correctly, you are downloading some video files from 
a node.js server, processing them and now want to upload them again?


What does Django have to do with that? Why even involve Django in that, 
it seems completely unrelated. Just write a Python (or whatever) script 
for that.



Also, How to work with internal files in Django I am running my script
locally it is working fine but when I am running these script in Django I
am getting an error.


I have no idea what you mean by "internal files". What script are you 
trying to run, what do you mean by "running it in Django"? What error 
are you getting?


You need to be a lot more specific if you want help.

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/f5b518f0-3d10-9846-3c05-e5b74f301230%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread vishal sharma
I am using Mocha VR object removing tool on Django. I am calling tool API
and removing the object from IDLE that works fine but when I am running
same script inside Django it is not removing the object.



On Sun, 2 Sep 2018 at 5:51 PM, Kasper Laudrup  wrote:

> Hi Vishal,
>
> On 02/09/2018 13.48, vishal sharma wrote:
> > Hi All,
> > How to upload files back to node server. I am new in ApI I am using the
> > Django where I am downloading files from node server and will process
> > videos files once processing will be done will upload videos back to
> server.
>
> So, if I understand correctly, you are downloading some video files from
> a node.js server, processing them and now want to upload them again?
>
> What does Django have to do with that? Why even involve Django in that,
> it seems completely unrelated. Just write a Python (or whatever) script
> for that.
>
> > Also, How to work with internal files in Django I am running my script
> > locally it is working fine but when I am running these script in Django I
> > am getting an error.
>
> I have no idea what you mean by "internal files". What script are you
> trying to run, what do you mean by "running it in Django"? What error
> are you getting?
>
> You need to be a lot more specific if you want help.
>
> 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/f5b518f0-3d10-9846-3c05-e5b74f301230%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/CADdVhnYcdUmtjxQPUA6oUS9_ekQ1bUbNPVUBfe4d%3DsZG4oXQng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread RONAK JAIN
Hello Kasper


can I share me my screen ?

Thanks
Ronak Jain

On Sun, Sep 2, 2018 at 5:51 PM Kasper Laudrup  wrote:

> Hi Vishal,
>
> On 02/09/2018 13.48, vishal sharma wrote:
> > Hi All,
> > How to upload files back to node server. I am new in ApI I am using the
> > Django where I am downloading files from node server and will process
> > videos files once processing will be done will upload videos back to
> server.
>
> So, if I understand correctly, you are downloading some video files from
> a node.js server, processing them and now want to upload them again?
>
> What does Django have to do with that? Why even involve Django in that,
> it seems completely unrelated. Just write a Python (or whatever) script
> for that.
>
> > Also, How to work with internal files in Django I am running my script
> > locally it is working fine but when I am running these script in Django I
> > am getting an error.
>
> I have no idea what you mean by "internal files". What script are you
> trying to run, what do you mean by "running it in Django"? What error
> are you getting?
>
> You need to be a lot more specific if you want help.
>
> 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/f5b518f0-3d10-9846-3c05-e5b74f301230%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/CA%2BAqMUeKV0isL3uTLSWLKG-Cs_bPMhfP06HxGmYPfjw9tG7Meg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread Kasper Laudrup

Hi Ronak,

On 02/09/2018 14.26, RONAK JAIN wrote:

Hello Kasper


can I share me my screen ?



What do you mean? If I want to start an interactive debugging session 
with you? Then the answer is no.


If you have any problems with using Django feel free to post them here. 
Describe what you are trying to achieve, what you have done, relevant 
code snippets and any error you are getting.


Then I'm sure there a many willing to help you.

Also please don't hijack completely unrelated threads when you ask a 
question.


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/dd5eaad9-ec0c-e38f-5883-65f817deb6ea%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread Kasper Laudrup

Hi Vishal,

On 02/09/2018 14.26, vishal sharma wrote:

I am using Mocha VR object removing tool on Django. I am calling tool API
and removing the object from IDLE that works fine but when I am running
same script inside Django it is not removing the object.




That's quite relevant information.

I have no experience with Mocha VR (haven't even heard of it before), 
but try to post the script you are trying to run, describe how you are 
"running it inside Django" and any errors you might be getting. Then I'm 
sure someone will be willing to try and help you.


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/f50cfd54-5731-83f8-4e4e-5324f59d7c66%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread vishal sharma
No error occurred but Script failed to generate o/p in the o/p dir.

On Sun, 2 Sep 2018 at 6:19 PM, Kasper Laudrup  wrote:

> Hi Vishal,
>
> On 02/09/2018 14.26, vishal sharma wrote:
> > I am using Mocha VR object removing tool on Django. I am calling tool API
> > and removing the object from IDLE that works fine but when I am running
> > same script inside Django it is not removing the object.
> >
> >
>
> That's quite relevant information.
>
> I have no experience with Mocha VR (haven't even heard of it before),
> but try to post the script you are trying to run, describe how you are
> "running it inside Django" and any errors you might be getting. Then I'm
> sure someone will be willing to try and help you.
>
> 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/f50cfd54-5731-83f8-4e4e-5324f59d7c66%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/CADdVhnaXhgz%3DJ_t_tA%2BM7D%3DfLGwa0kzZP5ERxPqxrJXLi9kWwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

2018-09-02 Thread Rupam Hazra
Hi,

I am stuck with this issue when i am installing mysqlclient this issue 

 * C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c 
/nologo /Ox*
* /W3 /GL /DNDEBUG /MD -Dversion_info=(1,3,1,'final',1) -D__version__=1.3.1 
"-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\*
*include" -IC:\Python37\include -IC:\Python37\include "-IC:\Program Files 
(x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MS*
*VC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual 
Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include*
*" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" 
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.171*
*34.0\shared" "-IC:\Program Files (x86)\Windows 
Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows 
Kits\10\include*
*\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows 
Kits\10\include\10.0.17134.0\cppwinrt" /Tc_mysql.c /Fobuild\temp.win-amd64*
*-3.7\Release\_mysql.obj /Zl*
*_mysql.c*
*_mysql.c(40): fatal error C1083: Cannot open include file: 
'my_config.h': No such file or directory*
*error: command 'C:\\Program Files (x86)\\Microsoft Visual 
Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86*
*\\x64\\cl.exe' failed with exit status 2*

*Please help me out.*


On Monday, 9 July 2018 14:40:57 UTC+5:30, Kasper Laudrup wrote:
>
> Hi Rupam, 
>
> On 07/09/2018 09:50 AM, Rupam Hazra wrote: 
> > C:\\Program Files (x86)\\Microsoft Visual 
> > 
> Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe'
>  
>
> > failed with exit status 2. 
> > 
> > Please i need help. 
> > 
>
> Which error message did the compiler (cl.exe) give you? 
>
> 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/d28a7be4-5f32-4821-b983-8c12eb18cdbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread Kasper Laudrup

Hi Ronak,

On 02/09/2018 14.57, RONAK JAIN wrote:

okay Thanks
*Portfolio Page *
There are portfolio images and categories above it. We want to do the same
So new model is required Category  and a relationship between Category and
projects So the portfolio page should load from our db*.*
*1.   How to make relationship category and project ?*
*2. How can I load from our db ?*



I'm sorry, but I really don't understand what your issue is.

You can definitely make a relationship between your Category and Project 
model.


You can load from you database the same way you would use any other 
database model in Django.


I'm afraid I cannot help you. Maybe someone else can understand what you 
are trying to achieve and what your challenges are.


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/987034ad-bd86-fe7c-f998-8926ae6c9fdb%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: Error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

2018-09-02 Thread Kasper Laudrup

Hi Rupam,

On 02/09/2018 15.15, Rupam Hazra wrote:

Hi,

I am stuck with this issue when i am installing mysqlclient this issue



Installing mysqlclient from source on Windows is definitely not related 
to Django in any way, so you would be much better of asking your 
question on a mysql related list/forum.


I don't understand why you want to build it yourself though, wouldn't it 
be easier just to use some of the installation packages already made for 
Windows?


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/5cbe363f-4020-57e5-8aba-4e5bdcc2beeb%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread RONAK JAIN
okay, Thanks


On Sun, Sep 2, 2018 at 7:29 PM Kasper Laudrup  wrote:

> Hi Ronak,
>
> On 02/09/2018 14.57, RONAK JAIN wrote:
> > okay Thanks
> > *Portfolio Page *
> > There are portfolio images and categories above it. We want to do the
> same
> > So new model is required Category  and a relationship between Category
> and
> > projects So the portfolio page should load from our db*.*
> > *1.   How to make relationship category and project ?*
> > *2. How can I load from our db ?*
> >
>
> I'm sorry, but I really don't understand what your issue is.
>
> You can definitely make a relationship between your Category and Project
> model.
>
> You can load from you database the same way you would use any other
> database model in Django.
>
> I'm afraid I cannot help you. Maybe someone else can understand what you
> are trying to achieve and what your challenges are.
>
> 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/987034ad-bd86-fe7c-f998-8926ae6c9fdb%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/CA%2BAqMUeOU2HK2Y34opfDW2GD497hp5cmpqzhi4i87-v2z%2BEMBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

2018-09-02 Thread Okware Aldo
Use pymysql package instead.

On Sun, 2 Sep 2018, 17:04 Kasper Laudrup,  wrote:

> Hi Rupam,
>
> On 02/09/2018 15.15, Rupam Hazra wrote:
> > Hi,
> >
> > I am stuck with this issue when i am installing mysqlclient this issue
> >
>
> Installing mysqlclient from source on Windows is definitely not related
> to Django in any way, so you would be much better of asking your
> question on a mysql related list/forum.
>
> I don't understand why you want to build it yourself though, wouldn't it
> be easier just to use some of the installation packages already made for
> Windows?
>
> 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/5cbe363f-4020-57e5-8aba-4e5bdcc2beeb%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/CAMEZma_dU%2B0YxHdKZL-HMi6U5JxfKL7W4vQX-frKyF%3DdVje8Yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

2018-09-02 Thread Gagan Kalia
What Python distribution are you using on windows? What command are you
using when you see this error?

On 02-Sep-2018 6:46 PM, "Rupam Hazra"  wrote:

Hi,

I am stuck with this issue when i am installing mysqlclient this issue

 * C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c
/nologo /Ox*
* /W3 /GL /DNDEBUG /MD -Dversion_info=(1,3,1,'final',1) -D__version__=1.3.1
"-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\*
*include" -IC:\Python37\include -IC:\Python37\include "-IC:\Program Files
(x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MS*
*VC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include*
*" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt"
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.171*
*34.0\shared" "-IC:\Program Files (x86)\Windows
Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows
Kits\10\include*
*\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows
Kits\10\include\10.0.17134.0\cppwinrt" /Tc_mysql.c /Fobuild\temp.win-amd64*
*-3.7\Release\_mysql.obj /Zl*
*_mysql.c*
*_mysql.c(40): fatal error C1083: Cannot open include file:
'my_config.h': No such file or directory*
*error: command 'C:\\Program Files (x86)\\Microsoft Visual
Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86*
*\\x64\\cl.exe' failed with exit status 2*

*Please help me out.*


On Monday, 9 July 2018 14:40:57 UTC+5:30, Kasper Laudrup wrote:
>
> Hi Rupam,
>
> On 07/09/2018 09:50 AM, Rupam Hazra wrote:
> > C:\\Program Files (x86)\\Microsoft Visual
> >
> Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe'
>
> > failed with exit status 2.
> >
> > Please i need help.
> >
>
> Which error message did the compiler (cl.exe) give you?
>
> 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/d28a7be4-5f32-4821-b983-8c12eb18cdbc%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/CAM-Jvq7HUVE6u1%3D%2BYvWSPQWRx_wszYHuqv-%3DseBB0UCE%3DLCknw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2

2018-09-02 Thread Rupam Hazra
hi

I wan to install this pip install mysqlclient==1.3.12 and geting errors


On Sunday, 2 September 2018 20:44:18 UTC+5:30, Gagan Kalia wrote:
>
> What Python distribution are you using on windows? What command are you 
> using when you see this error?
>
> On 02-Sep-2018 6:46 PM, "Rupam Hazra" > 
> wrote:
>
> Hi,
>
> I am stuck with this issue when i am installing mysqlclient this issue 
>
>  * C:\Program Files (x86)\Microsoft Visual 
> Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c 
> /nologo /Ox*
> * /W3 /GL /DNDEBUG /MD -Dversion_info=(1,3,1,'final',1) 
> -D__version__=1.3.1 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\*
> *include" -IC:\Python37\include -IC:\Python37\include "-IC:\Program Files 
> (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MS*
> *VC\14.15.26726\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual 
> Studio\2017\Community\VC\Tools\MSVC\14.15.26726\include*
> *" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" 
> "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.171*
> *34.0\shared" "-IC:\Program Files (x86)\Windows 
> Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows 
> Kits\10\include*
> *\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows 
> Kits\10\include\10.0.17134.0\cppwinrt" /Tc_mysql.c /Fobuild\temp.win-amd64*
> *-3.7\Release\_mysql.obj /Zl*
> *_mysql.c*
> *_mysql.c(40): fatal error C1083: Cannot open include file: 
> 'my_config.h': No such file or directory*
> *error: command 'C:\\Program Files (x86)\\Microsoft Visual 
> Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86*
> *\\x64\\cl.exe' failed with exit status 2*
>
> *Please help me out.*
>
>
> On Monday, 9 July 2018 14:40:57 UTC+5:30, Kasper Laudrup wrote:
>>
>> Hi Rupam, 
>>
>> On 07/09/2018 09:50 AM, Rupam Hazra wrote: 
>> > C:\\Program Files (x86)\\Microsoft Visual 
>> > 
>> Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\cl.exe'
>>  
>>
>> > failed with exit status 2. 
>> > 
>> > Please i need help. 
>> > 
>>
>> Which error message did the compiler (cl.exe) give you? 
>>
>> 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...@googlegroups.com .
> To post to this group, send email to django...@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/d28a7be4-5f32-4821-b983-8c12eb18cdbc%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/2ab70ce7-af33-4d03-8225-9960e09a2237%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread Ari Davidow
>why?

On Sun, Sep 2, 2018, 1:51 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 because you are subscribed to the Go

Re: Django Channels - core.py error

2018-09-02 Thread itsnate_b
Turns out there was an erroneous *init* function in the 
AsyncWebsocketConsumer class. Removing it fixed the issue.

On Saturday, September 1, 2018 at 1:23:10 PM UTC-4, itsnate_b wrote:
>
> 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/13c23da8-97ba-4cf1-a4bc-31426e1faf1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-09-02 Thread victor jack
Thanks for the link stephen , really much appreciated.

On Sat, Sep 1, 2018 at 7:59 PM Stephen J. Butler 
wrote:

> 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.
>

-- 
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/CABkm6MU77ZMrspuzQeiCQBFrPTsnbb-Nb9RZ1FxwTDJO9E00KQ%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-02 Thread victor jack
from the error message , i think you need to install the  package zlib and
import it.

On Sat, Sep 1, 2018 at 2:31 PM 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/44266161-c188-45e9-9b91-94901b7d8232%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/CABkm6MV-OVYFk_vxZwRKCPwmOO7V1hhXccdYcUfYj1yo2v0%2BwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2018-09-02 Thread victor jack
https://docs.djangoproject.com/en/2.0/topics/i18n/

check this out, but i don't think changing language_code from en to en-us
is the problem.

On Sat, Sep 1, 2018 at 2:31 PM Leo Treasure  wrote:

> 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.
>

-- 
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/CABkm6MVvxLBM-%2BhwnyFDmyn_s74G8Ycs8fnxGF5m%2B5EZ9T7MLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread gilwell muhati
Hello Sankaradhas,

Kindly use https://ckeditor.com/

https://www.youtube.com/watch?v=L6y6cn1XUfw

All the best




*Regards,Gilwell Muhati | +254 710 739 116 | *
*~~“The mind is its own place and in itself can make a heaven of hell, a
hell of heaven…”~~John Milton *


On Sun, Sep 2, 2018 at 8:41 AM 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/CALO4FhFh%3DbGG-f2L3peHkEcfNcXuGzyyZ%2BcDVdRGSW8ek4xHoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: text editor

2018-09-02 Thread victor jack
More like vim and vs code are the best editors

On Sun, 2 Sep 2018 06:51 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 messag

Re: text editor

2018-09-02 Thread Joel
One can carry on discussion about something as subjective as "best text
editor" for days and still not be done. IMO, this is a silly question to be
asking in a django group.

On Mon 3 Sep, 2018, 3:16 AM victor jack,  wrote:

> More like vim and vs code are the best editors
>
> On Sun, 2 Sep 2018 06:51 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.goog