Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Miguel Paolino
    @llazzaro you here?
    hi , i am new in django , can i make calender app easilu
    Houzayfa Rifai

    guys please help
    i have to compare between 2 data models
    ('P', 'Paid'),
    ('U', 'UNPAID'),

    class Location(models.Model):
    place = models.CharField(max_length=120 , null=True)
    def str(self):
    return self.place

    class Users(models.Model):

        # this function has to compare the date in updated and the date after 30 day 
        # if date in expery is greater than the date in updated >=30 days 
        # status have to change to unpaid 
        # the codes below are not correct of course
        #def now_plus_30(): 
    #    return datetime.now() + timedelta(days = 30)
    location            = models.ForeignKey(Location , null=True) 
    name                = models.CharField(max_length=60)
    phone_number    = models.IntegerField(default=0)
    price                = models.PositiveIntegerField(blank=True)
    status                 = models.CharField(max_length=1, choices=STATUS_CHOICES , default="U")
    descrition            = models.TextField(help_text="just to try it with the get_description def")
    timestamp            = models.DateTimeField(auto_now_add=True)
    updated            = models.DateTimeField(default=now)
        expiry                 = models.DateTimeField(default=now_plus_30())
    SMTPAuthenticationError at /comment/
    (535, '5.7.8 Username and Password not accepted.
    please help me to solve this error
    Harrison Kimani
    A relatively recent change in Google's authentication system means you're going to have to "allow less secure app access" to your Google account, in order for this to work.
    hey how do I link the calendar to a mobile device
    Gonzalo Garcia
    I'm trying to create a new base event
    My base class looks like this:
      class AbstractEvent(models.Model):
          jira_issue = models.CharField(max_length=20, default='NOTSYNCED')
    Gonzalo Garcia

    And my config looks like this:

        'Event': ['downtime_calendar.models.AbstractEvent']
        'Event': [('jira_issue',)]

    But whenever I try to run the ./manage.py makemigrations && ./manage.py migrate I got a nasty error

      Applying schedule.0006_auto_20171018_1520...Traceback (most recent call last):
      File "/home/gonzalo/VirtualEnvs/apcela_web_project/lib/python3.5/site-packages/django/db/backends/utils.py", line 65, in execute
        return self.cursor.execute(sql, params)
      File "/home/gonzalo/VirtualEnvs/apcela_web_project/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 101, in execute
        return self.cursor.execute(query, args)
      File "/home/gonzalo/VirtualEnvs/apcela_web_project/lib/python3.5/site-packages/MySQLdb/cursors.py", line 250, in execute
        self.errorhandler(self, exc, value)
      File "/home/gonzalo/VirtualEnvs/apcela_web_project/lib/python3.5/site-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler
        raise errorvalue
      File "/home/gonzalo/VirtualEnvs/apcela_web_project/lib/python3.5/site-packages/MySQLdb/cursors.py", line 247, in execute
        res = self._query(query)
      File "/home/gonzalo/VirtualEnvs/apcela_web_project/lib/python3.5/site-packages/MySQLdb/cursors.py", line 411, in _query
        rowcount = self._do_query(q)
      File "/home/gonzalo/VirtualEnvs/apcela_web_project/lib/python3.5/site-packages/MySQLdb/cursors.py", line 374, in _do_query
      File "/home/gonzalo/VirtualEnvs/apcela_web_project/lib/python3.5/site-packages/MySQLdb/connections.py", line 277, in query
        _mysql.connection.query(self, query)
    _mysql_exceptions.OperationalError: (1829, "Cannot drop column 'id': needed in a foreign key constraint 'schedule_eventrelation_event_id_8c57a7b4_fk_schedule_event_id' of table 'apcela_web_app.schedule_eventrelation'")
    Gonzalo Garcia
    Could you please let me know if this is bug?
    Gonzalo Garcia
    I'm not sure why is that migration is trying to remove the ID from the schedule_event table
    Mustaqeem Khowaja
    hi everyone
    Im building a backend powered by django
    I want to be able to provide my users with the ability to create events
    on the events, one of the things they should be able to do is invite other users to that event
    and then if you receive an invite to an event it should show up on your calendar as well
    would appreciate any advice on how I can accomplish this
    Renato Marinho
    This message was deleted
    Renato Marinho
    This message was deleted
    'default': {
    'ENGINE': 'django.db.backends.sqlite3',
    'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    please anyone tell me the working of this line
    what is the name of the database
    please help me , i am new in the django
    please anyone help me
    Ridwan Oladipupo
    Hi everyone
    Please I need help from you on how to implementation the django-scheduler In my App. The documentation seems not clear to me.
    @rahulkoundal The name of the database is Sqlite
    Helllo i download the django scheduler when i try to execute './manage.py bower install' i resolved some errors because manage.py is not exist ! pleause help me i need to delevrate the project tomorrow
    @ggarcia24 hello
    helllo is any one here !!! ??
    Abhishek Kumar Jha
    Ana Paula Mendes
    Hello! How I run new migrations?

    Hey, is anyone here? I'm thinking about using django-scheduler for my application, but I'm not sure if it's the right choice. I want users to be able to add an event from a form view with the possibility of it recurring. However, creating repeat rules should be done entirely from the same view, by users. It should look something like this when it's finally done: finished example.

    Is something like this even possible with django-scheduler? How would I integrate this into an existing application? Thanks so much, I couldn't find any model information on the docs and I'm not even sure how to even create rules in the admin.

    Debora Peralta
    Hello! I'm tryng to use the django-scheduler calendar package to show the users the hours booked into a calendar, I installed the package but after that I'm lost to implement the calendar
    I'm using bootstrap and jquery already
    anyone can help?
    Debora Peralta
    do i need to add the schedule folder to my project for make it work???
    Hello, cannot find the Test Suite Collection Scheduler in katalon studio v. 7.2.1. Can anyone help?
    I am in the Suite Collection and only see Execution Mode in the Execution Information but no way to schedule within the Suite Collection
    i am new can i join

    I am new here

    i wanna know if this app is pluggable into another project without massive tweaks