Wednesday, May 1, 2019

Populating timetable

We have to populate a timetable with subjects. What would be the best approach?
In our sample timetable there are 25 hours (keys), all the FH value should be replaced with random subjects as many as their corresponding hour.

timetable = [{'A1': "FH", 'B1': "FH", 'C1': "FH", 'D1': "FH", 'E1': "FH"},
                    {'A2': "FH", 'B2': "FH", 'C2': "FH", 'D2': "FH", 'E2': "FH"},
                    {'A3': "FH", 'B3': "FH", 'C3': "FH", 'D3': "FH", 'E3': "FH"},
                    {'A4': "FH", 'B4': "FH", 'C4': "FH", 'D4': "FH", 'E4': "FH"},
                    {'A5': "FH", 'B5': "FH", 'C5': "FH", 'D5': "FH", 'E5': "FH"}]

subjects_required_hours = {"S1": 4, "S2": 3, "S3": 5, "S4": 3, "S5": 5, "S6": 5}


Regards
Britto

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF0v3b5pCyuQ_1Cypy7u50gp17M5-7b0_TLJ_jhXcnZuPE0wvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: Forms in Bootstrap 4 Modals?

Can you check does it work? Make change as you required

" By container = By.xpath("//*[@id=\"wishlistlogin\"]/div");
        WebDriverWait wait = new WebDriverWait(driver, 10);
        wait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(container));
               
        WebElement textElement = driver.findElement(By.className("add-to-wishlist"));
        String textBeforeAjax = textElement.getText().trim();
        System.out.println(textBeforeAjax);
        driver.findElement(By.className("add-to-wishlist")).click();
       
        By loader = By.className("widgetPickup");
        wait.until(ExpectedConditions.invisibilityOfElementLocated(loader)); "




On Tuesday, June 19, 2018 at 3:08:59 PM UTC-4, Alexander Joseph wrote:
I've posted this before but havent gotten any response. If more information is needed let me know and I'll get you anything I can.

I basically want to use forms in Bootstrap 4 modals for my CRUD operations but cant really find a good tutorial or references to work from. I'm newer to Django still. I'm sure this is a common question/application so theres got to be some material out there that can help a novice like me. Has anyone had some success with implementing this? I'm using CBVs so something that works with CBVs would be ideal. Any help, advice, or suggestions would be much appreciated

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/84b80cbe-0009-47d8-ab87-e0342d583c72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Autoreloader looping Django 2.2

Hi Ramiro

Thanks for answering.

Tried stable 2.2.1 and it looks like it is working ok now.

The folder is a virtualbox shared folder, shared from an osx host.

Thanks for your help!

On Tuesday, April 30, 2019 at 12:33:58 AM UTC+2, Ramiro Morales wrote:
Hi Dan,

On Fri, Apr 26, 2019 at 11:00 AM Dan <dan...@gmail.com> wrote:
Forgot to mention that this is on a mac osx host with ubuntu 16 virtualbox guest, I'm not sure that has something to do with it?

On Thursday, April 25, 2019 at 10:06:59 PM UTC+2, Dan wrote:

I'm using Django 2.2 on a new project and suddenly the autoreloader is looping when I change a file


DEBUG:


/urls.py. is_changed: False, is_new: True

/urls.py previous mtime: None, current mtime: 1556221457.0

/urls.py notified as changed. Signal results: [(<function translation_file_changed at 0x7fd933e05d90>, None)].

/urls.py changed, reloading

It says the file is new but it was just changed - it refers to translation_file_changed but I have no translation files in my project.


My project is on a virtualbox shared folder, if I start a new project from scratch it works ok and previous versions of Django work fine.


I tried using watchman + pywatchman and it doesn't seem to work at all, I dont think it works with shared virtualbox folders. 


Is there anyway I can get this working with 2.2 can I use the old reloader or do I need to revert to 2.1?



Can you try the stable/2.2.x git branch? it contains a couple of post-2.1 fixes to the reloading code which will get released as 2.2.1 in a few days AFAIK..

Also, is the folder  where urls-py is located shared between the host and the VM in some way? What file system type is the host using?

--
Ramiro Morales
@ramiromorales

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0f394562-5223-4cab-9125-e3e73a3dfc86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Django session

For using file-based sessions, you have to set the setting of SESSION_ENGINE to django.contib.sessions.backends.file

You will also have to make sure that your web server has permissions to read and write the directory of the session file.

There are 3 more ways to configure session engine in Django; Database-backed sessions, Cached sessions, and Cookie-based sessions.

Learn the whole concept of Django sessions with Django sessions tutorial.

On Wednesday, May 1, 2019 at 4:50:40 PM UTC+5:30, Aakash Bachheriya wrote:
How i can configure session engine in Django through File based sessions?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/eff9aae3-d9e2-4566-820b-89f16bcc84cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Genetic Algorithm for generating timetable


On Tue, 30 Apr 2019 at 17:41, Britto . <brittocj@gmail.com> wrote:
No one knows about genetic algorithm with Django!!!!

On Mon, 22 Apr, 2019, 5:09 PM brittocj, <brittocj@gmail.com> wrote:
How to implement genetic algorithm in Django to develop a web application for timetable generation?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/66b48364-c769-4c68-a2a2-29efb77d13a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF0v3b5Rog8U08TQrKn3tTk9BjsHR7JU60uwKxT3VpHO6s9unQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Best Regards,

Christian Ledermann

Newark-on-Trent - UK
Mobile : +44 7474997517

https://uk.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don't drive species to extinction

2) Don't destroy a habitat that species rely on.

3) Don't change the climate in ways that will result in the above.

}<(((*>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWpZkW__vsiPpZqe6kXDkQ2Gw-525_wsEeuuFLNOBY5Bqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Serving Files with Django

Hello! Am currently working on a web app which allows user to upload files of less that 1 gb size in any office formates like pdf, docx and some other extentions for programs like .h, .py, .kt, .java. Is there any framework or app that i can extend and make the file handling work? These files are to be uploaded by users and download by other users

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/81af04a3-e4a8-4d1a-88e5-bd2ce0b64bff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Django bugfix release 2.2.1

Details are available on the Django project weblog:

https://www.djangoproject.com/weblog/2019/may/01/django-bugfix-release-221/