Re: Rails to Django Application Architecture Question

2019-05-24 Thread Steve R
Thank you!

On Friday, May 24, 2019 at 3:08:33 PM UTC-5, Alex Heyden wrote:
>
> What you're describing is how you'd lay out the models in an app. It 
> sounds like you may have one Django app. If I were writing this in Django, 
> I might try to spin the workflow and task logic off into its own 
> application if I thought that the core ideas of users and projects might 
> feed some other bit of logic elsewhere, but YAGNI may apply.
>
> On Fri, May 24, 2019 at 12:19 PM Steve R > 
> wrote:
>
>> Hi All - 
>>
>> I am a new Django user, coming from RoR. I am having some difficulty 
>> wrapping my head around the whole 'apps' thing. 
>>
>> Here is my specific use case, and I would appreciate feedback on if I am 
>> thinking about this correctly, and if not, how to think about it.
>>
>> I have a project management application I built in RoR that I am 
>> reimplementing in Django. 
>>
>> A User has one or more Projects, each Project has one or more Workflows, 
>> and each Workflow has one or more Tasks. Tasks are assigned to users, who 
>> may or may not be the Project owner.
>>
>> In Django, a User would be an app, but...
>>
>> Would a Project be an app, with all the functionality of Workflow and 
>> Task below it? Separate apps 'feels' wrong, because a task is such a minor 
>> element (for example), but if I squint, I could see why someone might want 
>> a Task for something else.
>>
>> Or
>>
>> Would I have an app each for Projects, Workflows and Tasks, then set up 
>> logic linking the apps together?
>>
>> I thing the question for me is, at what point are the reusable apps in 
>> Django intended to be independent - I get the impression, the answer is 
>> 'wherever possible', but does that apply even to very small apps, as Task 
>> would be?
>>
>> Thanks in advance for your insight.
>>
>> SR
>>
>> -- 
>> 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...@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/eed74b23-f8a7-44ee-8e9f-bc19a56e50c0%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/c76c0f35-6c76-4a92-b554-4fa150c5d3b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Rails to Django Application Architecture Question

2019-05-24 Thread Alex Heyden
What you're describing is how you'd lay out the models in an app. It sounds
like you may have one Django app. If I were writing this in Django, I might
try to spin the workflow and task logic off into its own application if I
thought that the core ideas of users and projects might feed some other bit
of logic elsewhere, but YAGNI may apply.

On Fri, May 24, 2019 at 12:19 PM Steve R  wrote:

> Hi All -
>
> I am a new Django user, coming from RoR. I am having some difficulty
> wrapping my head around the whole 'apps' thing.
>
> Here is my specific use case, and I would appreciate feedback on if I am
> thinking about this correctly, and if not, how to think about it.
>
> I have a project management application I built in RoR that I am
> reimplementing in Django.
>
> A User has one or more Projects, each Project has one or more Workflows,
> and each Workflow has one or more Tasks. Tasks are assigned to users, who
> may or may not be the Project owner.
>
> In Django, a User would be an app, but...
>
> Would a Project be an app, with all the functionality of Workflow and Task
> below it? Separate apps 'feels' wrong, because a task is such a minor
> element (for example), but if I squint, I could see why someone might want
> a Task for something else.
>
> Or
>
> Would I have an app each for Projects, Workflows and Tasks, then set up
> logic linking the apps together?
>
> I thing the question for me is, at what point are the reusable apps in
> Django intended to be independent - I get the impression, the answer is
> 'wherever possible', but does that apply even to very small apps, as Task
> would be?
>
> Thanks in advance for your insight.
>
> SR
>
> --
> 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/eed74b23-f8a7-44ee-8e9f-bc19a56e50c0%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/CA%2Bv0ZYV7NseBC69JdDocz_pC%2BZcoGEu7Q7q5RhfOcAMu9j6jVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Create a real small business website with Django as soon as possible!!

2019-05-24 Thread Siavash Siavashi
I am new to Django and I want to create a personal business site using this 
platform. I should say that i have some experience working with python and 
html.
In general in my business , customers on home page click on the type of 
services that they want.Next, they should register some information about 
the  service interesting.The content of my site should be display as the 
language that is  selected. Then , I would study the registered requests 
and response them by email.If a costumer want to check her/his request, it 
will be informed on website by a tracking number and a note that I write 
down after processing that request(only a small note about the request 
checking situation and that the result is emailed to the costumer email).

I could design and create model and database for my website,but my main 
problem is views and templates.So i have some questions:
1- Is there a sample project to use its views and templates for my website ?
2- is it possible to use built-in admin app views and templates in my 
website? how ?
2- how to change the language of my website content? is there a sample 
project?

Thanks alot

-- 
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/fa9da2f6-af65-4c74-9987-bed98b1e1798%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Fine-tuning rich text displays

2019-05-24 Thread Tim Johnson
django 2.1.5 python 3.7.2

My django website is used to display articles in rich text format
with embedded images created by copying and pasting from libreoffice
documents.  I have no major roadblock to complain about, but there
are a number of details that I'd like to clean up. 

Things are coming together, but I could use pointers and optimizing
tips about things like:

django-template filters
div containers
css classes
content types

I'd appreciate URLs to discussions, tips, tricks, caveats,
tutorials, etc, but most important would be


keywords


I mean, you can find almost anything on google _if_ you know the
right keywords ... could use more of those.

thanks
-- 
Tim Johnson
http://www.tj49.com

-- 
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/20190524192520.GB2347%40mail.akwebsoft.com.
For more options, visit https://groups.google.com/d/optout.


Rails to Django Application Architecture Question

2019-05-24 Thread Steve R
Hi All - 

I am a new Django user, coming from RoR. I am having some difficulty 
wrapping my head around the whole 'apps' thing. 

Here is my specific use case, and I would appreciate feedback on if I am 
thinking about this correctly, and if not, how to think about it.

I have a project management application I built in RoR that I am 
reimplementing in Django. 

A User has one or more Projects, each Project has one or more Workflows, 
and each Workflow has one or more Tasks. Tasks are assigned to users, who 
may or may not be the Project owner.

In Django, a User would be an app, but...

Would a Project be an app, with all the functionality of Workflow and Task 
below it? Separate apps 'feels' wrong, because a task is such a minor 
element (for example), but if I squint, I could see why someone might want 
a Task for something else.

Or

Would I have an app each for Projects, Workflows and Tasks, then set up 
logic linking the apps together?

I thing the question for me is, at what point are the reusable apps in 
Django intended to be independent - I get the impression, the answer is 
'wherever possible', but does that apply even to very small apps, as Task 
would be?

Thanks in advance for your insight.

SR

-- 
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/eed74b23-f8a7-44ee-8e9f-bc19a56e50c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: having probem with using signal with channels in django

2019-05-24 Thread Aditya Bohra
i am talking about channels(websocket) can they be connected to postman  
they main problem is that i need to create real time app like real time 
dashboard which update the data as soon as there is any crud event occurs 
in db

-- 
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/05671afe-6d52-4404-ad2e-84aca2127482%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: having probem with using signal with channels in django

2019-05-24 Thread Aditya Bohra
can i use postman for websocket?
I am trying to create a real time dashboard using channels

-- 
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/1532dd35-ab61-46d7-867a-f8b1ffeee922%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: having probem with using signal with channels in django

2019-05-24 Thread prem yadav
which application are you using to send the data?

If you are using postman you cannot run the local ip in postman, it wont
work you have to run the application with ip address of your pc or system

On Fri, May 24, 2019 at 8:52 PM Kasper Laudrup 
wrote:

> On May 24, 2019 11:30:51 AM GMT+02:00, Aditya Bohra <
> adityabohra...@gmail.com> wrote:
> >Not able to  send real time data to client when a post signal is
> >generated
>
> Hi Aditya,
>
> Try to change some code and see if that solves your problem. If not, try
> to change something else. Eventually, I'm sure that will solve your probem.
>
> Hope that helps.
>
> 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/AEF59549-7B81-45E5-9BDD-E41E6F2F0274%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/CAG%3DmdoAoeAayekRsKuMCDLyXbXoA1OFuKWOej0yc6_mjvQsj4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: having probem with using signal with channels in django

2019-05-24 Thread Kasper Laudrup
On May 24, 2019 11:30:51 AM GMT+02:00, Aditya Bohra  
wrote:
>Not able to  send real time data to client when a post signal is
>generated

Hi Aditya,

Try to change some code and see if that solves your problem. If not, try to 
change something else. Eventually, I'm sure that will solve your probem.

Hope that helps.

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/AEF59549-7B81-45E5-9BDD-E41E6F2F0274%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


Re: having probem with using signal with channels in django

2019-05-24 Thread Aditya Bohra
Text format and in local ip

-- 
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/58f3ab4a-9dae-4f87-ad16-1cd770567fe2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: having probem with using signal with channels in django

2019-05-24 Thread prem yadav
Hi Aditya,

Can you tell me below things,

In which format you are passing the data?

Are you trying with real IP address or local ip address?

Thanks & Regards,
Premkumar Ch.

On Fri, May 24, 2019 at 3:01 PM Aditya Bohra 
wrote:

> Not able to  send real time data to client when a post signal is generated
>
> --
> 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/14a16e14-3328-4159-9fd6-2f47e6a659d2%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/CAG%3DmdoBhyz8pUNdsttA7Vreq1Y6Cn7ZmU-Xw-qAjhc8zXwxnrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


having probem with using signal with channels in django

2019-05-24 Thread Aditya Bohra
Not able to  send real time data to client when a post signal is generated

-- 
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/14a16e14-3328-4159-9fd6-2f47e6a659d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django channels on IIS

2019-05-24 Thread Roger Gammans
On Thu, 2019-05-23 at 22:17 -0700, Daniel Butler wrote:
> It looks like I found my key I had to install the application module
> CGI then use this library to get everything to work! 
> https://pypi.org/project/wfastcgi/

Does that support websockets? 

IIS itself seems to ( https://docs.microsoft.com/en-us/iis/get-started/
whats-new-in-iis-8/iis-80-websocket-protocol-support ) , but I don't
the factcgi ->wsgi adaptor does.

I've used it for non-channels projects, but didn't think it would
support websockets; and channels - for a start it's WSGI not ASGI.

Or have I missed something. 

-- 
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/1558686736.16116.3.camel%40gammascience.co.uk.
For more options, visit https://groups.google.com/d/optout.