Suggestions Front tool

2020-07-07 Thread kishore babu
Hi, 

I have TCL frame work with me, we keep on using it for our activities 
currently, its CLI based and running in laptop in cmd windows
 
We used to open two config files and start the cli command for the 
execution, but i see few mistakes and more man power is required where no 
documentation needed 
to give strength for my TCL frame work[in fact to my team] i thought i can 
develop GUI frond end tool 

*mainly 6 requirements*
1. giving few IP address, selecting the tool names, time values will be 
stored in the test_configuration.cfg  
2. select the test case from search engine fetching  from TCL frame work 
store it in the test_cases.cfg 
3. once the above configs done then from GUI will initiate the run command 
4. then we shall have to monitor the execution from frame work 
5. saving the logs and opening execution report, 
6. if the test case FAIL then it should be seen on GUI RED colored if 
PASSED - should be see in Green color. 

here i came to ask can the Django will give me GUI front end for my TCL 
frame work... rather than web based interface. 

If yes where i can start, 

***i am sorry i shouldn't mentioned the frame work name or the command to 
run in open forums as its proprietary tool.***

Thanks,
Kishore.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/454e7c25-7e56-4e3f-9565-504898932afdo%40googlegroups.com.


django.core.exceptions.ImproperlyConfigured: The included URLconf 'simplesocial.urls' does not appear to have any patterns in it

2020-07-07 Thread Exactly musty
Show your URLs.py and your imports

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8d93836b-2113-4bf4-8238-089e79ad4546o%40googlegroups.com.


Re: django.core.exceptions.ImproperlyConfigured: The included URLconf 'simplesocial.urls' does not appear to have any patterns in it

2020-07-07 Thread Evolution2020 evo
check your URL's and views first are they configured well

On Tuesday, July 7, 2020 at 3:37:37 PM UTC+3, Zabihullah Danish wrote:
>
> *Dear Friends greetings*
> since couple of days i am having the error see in attached file while i am 
> running *python manage.py runserver *getting the attached error code and 
> searched many time in google and still couldn't solved the problem please 
> help me. 
>
> [image: django error.PNG]
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f299f2a5-f465-480f-bbf6-2c4220de0ac7o%40googlegroups.com.


Re: Suggestions Front tool

2020-07-07 Thread Derek
You are better off using Django for what is it designed for - web-based 
systems - and rather use other Python alternatives for desktop-based GUIs 
e.g. pyQT
(see various resources such as 
https://blog.resellerclub.com/the-6-best-python-gui-frameworks-for-developers/
 )

On Tuesday, 7 July 2020 14:37:24 UTC+2, kishore babu wrote:
>
> Hi, 
>
> I have TCL frame work with me, we keep on using it for our activities 
> currently, its CLI based and running in laptop in cmd windows
>  
> We used to open two config files and start the cli command for the 
> execution, but i see few mistakes and more man power is required where no 
> documentation needed 
> to give strength for my TCL frame work[in fact to my team] i thought i can 
> develop GUI frond end tool 
>
> *mainly 6 requirements*
> 1. giving few IP address, selecting the tool names, time values will be 
> stored in the test_configuration.cfg  
> 2. select the test case from search engine fetching  from TCL frame work 
> store it in the test_cases.cfg 
> 3. once the above configs done then from GUI will initiate the run command 
> 4. then we shall have to monitor the execution from frame work 
> 5. saving the logs and opening execution report, 
> 6. if the test case FAIL then it should be seen on GUI RED colored if 
> PASSED - should be see in Green color. 
>
> here i came to ask can the Django will give me GUI front end for my TCL 
> frame work... rather than web based interface. 
>
> If yes where i can start, 
>
> ***i am sorry i shouldn't mentioned the frame work name or the command to 
> run in open forums as its proprietary tool.***
>
> Thanks,
> Kishore.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a61315a8-a972-445f-8090-fb885c95be77o%40googlegroups.com.


Re: Django

2020-07-07 Thread Mottaz Hegaze
try this

in your project urls not your app urls register the namespace like this

path('' , include('blog.urls' , namespace="post")



On Tue, Jul 7, 2020 at 5:11 PM Tanni Seriki  wrote:

> Please family.please help me out,
> Am trying to create a posts details Page, in model.py I declare a get
> absolute URL with a reverse of my post details urls. But if I run it it
> shows me an error, no reverse, post is not a registered namespace.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6bc7554b-bee8-40ee-8662-e156ff6ae768o%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-ddZOSARB9tOqu2cXY6SOR_OoUUWjbE40_v%2B8u1YetF%2BA%40mail.gmail.com.


Re: Django

2020-07-07 Thread Tanni Seriki
Thanks sir I tried that also,
But it brinks another error
No reverse for index, index not a valid function

On Tue, Jul 7, 2020, 4:38 PM Mottaz Hegaze  wrote:

> try this
>
> in your project urls not your app urls register the namespace like this
>
> path('' , include('blog.urls' , namespace="post")
>
>
>
> On Tue, Jul 7, 2020 at 5:11 PM Tanni Seriki 
> wrote:
>
>> Please family.please help me out,
>> Am trying to create a posts details Page, in model.py I declare a get
>> absolute URL with a reverse of my post details urls. But if I run it it
>> shows me an error, no reverse, post is not a registered namespace.
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/6bc7554b-bee8-40ee-8662-e156ff6ae768o%40googlegroups.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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHV4E-ddZOSARB9tOqu2cXY6SOR_OoUUWjbE40_v%2B8u1YetF%2BA%40mail.gmail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALWCJq3vH%3DzgOFO%3DG2k6Lc%2BXZAyyrX1EXFSgKKEGa0Hp43tzXA%40mail.gmail.com.


Re: Django

2020-07-07 Thread Mottaz Hegaze
try to use function name IndexList with reverse  , not the url name
i don't see all your code

On Tue, Jul 7, 2020 at 5:41 PM Tanni Seriki  wrote:

> Thanks sir I tried that also,
> But it brinks another error
> No reverse for index, index not a valid function
>
> On Tue, Jul 7, 2020, 4:38 PM Mottaz Hegaze  wrote:
>
>> try this
>>
>> in your project urls not your app urls register the namespace like this
>>
>> path('' , include('blog.urls' , namespace="post")
>>
>>
>>
>> On Tue, Jul 7, 2020 at 5:11 PM Tanni Seriki 
>> wrote:
>>
>>> Please family.please help me out,
>>> Am trying to create a posts details Page, in model.py I declare a get
>>> absolute URL with a reverse of my post details urls. But if I run it it
>>> shows me an error, no reverse, post is not a registered namespace.
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/6bc7554b-bee8-40ee-8662-e156ff6ae768o%40googlegroups.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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHV4E-ddZOSARB9tOqu2cXY6SOR_OoUUWjbE40_v%2B8u1YetF%2BA%40mail.gmail.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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALWCJq3vH%3DzgOFO%3DG2k6Lc%2BXZAyyrX1EXFSgKKEGa0Hp43tzXA%40mail.gmail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-e8vL1eGKNBLN%2B%3DzpaBZ%2B0sBFNvxviHWSZ%3DAsHsiTg4ZQ%40mail.gmail.com.


Re: Django

2020-07-07 Thread Tanni Seriki
Ok... Sir please
Can I have your WhatsApp number,
So that you could put me through better

On Tue, Jul 7, 2020, 4:58 PM Mottaz Hegaze  wrote:

> try to use function name IndexList with reverse  , not the url name
> i don't see all your code
>
> On Tue, Jul 7, 2020 at 5:41 PM Tanni Seriki 
> wrote:
>
>> Thanks sir I tried that also,
>> But it brinks another error
>> No reverse for index, index not a valid function
>>
>> On Tue, Jul 7, 2020, 4:38 PM Mottaz Hegaze  wrote:
>>
>>> try this
>>>
>>> in your project urls not your app urls register the namespace like this
>>>
>>> path('' , include('blog.urls' , namespace="post")
>>>
>>>
>>>
>>> On Tue, Jul 7, 2020 at 5:11 PM Tanni Seriki 
>>> wrote:
>>>
 Please family.please help me out,
 Am trying to create a posts details Page, in model.py I declare a get
 absolute URL with a reverse of my post details urls. But if I run it it
 shows me an error, no reverse, post is not a registered namespace.

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/6bc7554b-bee8-40ee-8662-e156ff6ae768o%40googlegroups.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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAHV4E-ddZOSARB9tOqu2cXY6SOR_OoUUWjbE40_v%2B8u1YetF%2BA%40mail.gmail.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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALWCJq3vH%3DzgOFO%3DG2k6Lc%2BXZAyyrX1EXFSgKKEGa0Hp43tzXA%40mail.gmail.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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHV4E-e8vL1eGKNBLN%2B%3DzpaBZ%2B0sBFNvxviHWSZ%3DAsHsiTg4ZQ%40mail.gmail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALWCJq2ZZai%3DB_-WsGXNTa99WAMT9BycyM53YS33ngu-w6t_4A%40mail.gmail.com.


Re: Static not working on unix while working on windows

2020-07-07 Thread ashish goyal
Hey musty,

No those basic things are working already on windows. But not on linux. Once 
hosted css is not available, even after i did collectstatic in static folder 
but still css n js are not loading with static

>  To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/35233aa7-a4c2-4cbf-8d69-54ddc4844045o%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/964912B9-CB49-4867-8A31-9829F4ABAF8B%40gmail.com.


Re: Static not working on unix while working on windows

2020-07-07 Thread Exactly musty
Oh,have you run migration yet,if you haven't, you need to sometimes while 
hosting 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1e16e602-1308-4bc4-8a40-f6cfab12a819o%40googlegroups.com.


Re: Django

2020-07-07 Thread Exactly musty
You wont get your question answered if you snap your code with your phone,is 
either you copy and paste the code or screen shot your laptop,ain't seeing shit 
if you want your question you should edit it

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4ad05dbc-3a32-448a-a8d2-00f8058fda3co%40googlegroups.com.


Re: Static not working on unix while working on windows

2020-07-07 Thread Kevin Jay
I’ve had the same issue in the past. I fixed it by removing
*rel="stylesheet *


On Mon, Jul 6, 2020 at 1:20 PM ashish goyal 
wrote:

> Hi All,
>
> I have created a django app on windows and have used bootstrap navbar n
> other functions which are working good on windows.
>
> Same files I have imported on unix server then i am able to get all
> details but getting issue with css and js files saying below error
>
> *Refused to apply style from  because its MIME type ('text/html') is
> not a supported stylesheet MIME type, and strict MIME checking is enabled
> angular*
>
> I am using below script in windows which is working in windows but not on
> unix
>
> *{ % load static %}*
> * To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/D45C33B1-949B-4BBE-8338-8982F2A246BF%40gmail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEtabwcUaMsPwztfk-aep_t3cKjva-fSAtfYcX3wJDgA6NhwXg%40mail.gmail.com.


Re: Static not working on unix while working on windows

2020-07-07 Thread Kevin Jay
You also need to close your quote.

On Tue, Jul 7, 2020 at 11:54 AM Kevin Jay  wrote:

> I’ve had the same issue in the past. I fixed it by removing
> *rel="stylesheet *
>
>
> On Mon, Jul 6, 2020 at 1:20 PM ashish goyal 
> wrote:
>
>> Hi All,
>>
>> I have created a django app on windows and have used bootstrap navbar n
>> other functions which are working good on windows.
>>
>> Same files I have imported on unix server then i am able to get all
>> details but getting issue with css and js files saying below error
>>
>> *Refused to apply style from  because its MIME type ('text/html') is
>> not a supported stylesheet MIME type, and strict MIME checking is enabled
>> angular*
>>
>> I am using below script in windows which is working in windows but not on
>> unix
>>
>> *{ % load static %}*
>> *> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/D45C33B1-949B-4BBE-8338-8982F2A246BF%40gmail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEtabwesOTudueuyFYdyhj8vzKCMqCR24SmKKEnAaus5mXXBhw%40mail.gmail.com.


Re: Static not working on unix while working on windows

2020-07-07 Thread Avi shah
Hi Ashish ,
I had the same error while deploying my django on iis windows server
just copy paste the below code into your settings.py and you will have no
issues
And i have done for js , you can do it for css too

import mimetypes

mimetypes.add_type("text/plain", ".js", True)
mimetypes.add_type("text/javascript", ".js", True)


And let me know if theres any error in django

Thanks & Regards ,
Avi Shah
(9167199744)

>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALa7AFNqNh-j9ABe1vmy-QWdR4AhGiWAJCxzmj6t250bqvRALg%40mail.gmail.com.


transforming form input

2020-07-07 Thread Kai Kobschätzki
Hi:

Although I spent time with researching I have no starting point for
solving my problem. Perhaps someone of you could give me a tip..

I have a simple model.py, e.g.

class AdressData(models.Model):

    forename=models.CharField(max_length=20,null=True,blank=True)

   surname=models.CharField(max_length=10,null=True,blank=False)

  

and forms.py e.g.

class AdressForm(forms.ModelForm):

   forename=forms.CharField(required=False)

   surname=forms.CharField(required=True)

   class Meta():

  model=AdressData

 fields= ['forename',surname']


and views.py e.g.

def question(request):

   if request.method=='Post':

  form=AdressForm(request.POST)

  if form.is_valid():

 form.save()


I render one input field surname. And if the user writes one string in
the input field it should be saved to surname (so forename is None). If
the user writes two strings (separated through a white space) than the
first part should be saved to forename and the second one to surname
(and perhaps I want to make some string manipulation further). My
problem is not the string manipulation. In result I have the forename in
a variable and the surname in an other variable.

I tried my luck with def clean_surname in the form.py and I could do the
string manipulation which I want. But I did not find a way to say django
- please save e.g. 'Mike' in forename and 'Smith' in surname.

Could anyone show me the path for solving it?

Thanks in advance,

bengoshi



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/eddf7370-0821-1fa2-d510-a3a0a4d19be8%40gmail.com.


Re: Static not working on unix while working on windows

2020-07-07 Thread ashish goyal
Ok avi (Import mimetypes) and kevin (Remove stylesheet - hope this works on 
redhat) will follow both changes and come back.

Since database is same When i was developing on windows and when i migrate to 
linux redhat then no migration needs to be apply when i did migrate.

Sent from my iPhone

> On 08-Jul-2020, at 00:54, Avi shah  wrote:
> 
> 
> 
> Hi Ashish , 
> I had the same error while deploying my django on iis windows server 
> just copy paste the below code into your settings.py and you will have no 
> issues
> And i have done for js , you can do it for css too
> 
> import mimetypes
> 
> mimetypes.add_type("text/plain", ".js", True)
> mimetypes.add_type("text/javascript", ".js", True)
> 
> 
> And let me know if theres any error in django 
> 
> Thanks & Regards ,
> Avi Shah
> (9167199744) 
>> 
>> 
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CALa7AFNqNh-j9ABe1vmy-QWdR4AhGiWAJCxzmj6t250bqvRALg%40mail.gmail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/82988F95-C659-4AFB-9584-148B17FA5830%40gmail.com.